summaryrefslogtreecommitdiffstats
path: root/gcc/ada/sem_attr.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/sem_attr.adb')
-rw-r--r--gcc/ada/sem_attr.adb1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ada/sem_attr.adb b/gcc/ada/sem_attr.adb
index 18c6177724f..f7aa92ba548 100644
--- a/gcc/ada/sem_attr.adb
+++ b/gcc/ada/sem_attr.adb
@@ -862,6 +862,7 @@ package body Sem_Attr is
-- Case of an expression
Resolve (P);
+
if Is_Access_Type (P_Type) then
-- If there is an implicit dereference, then we must freeze
OpenPOWER on IntegriCloud