From: Justin Squirek Date: Thu, 9 May 2024 19:37:44 +0000 (+0000) Subject: ada: Allow implicit dereferenced for uses of 'Super X-Git-Tag: basepoints/gcc-16~8242 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3fe0ffdd22bcabcbf03ee936d89ab971fbc74c4;p=thirdparty%2Fgcc.git ada: Allow implicit dereferenced for uses of 'Super This patch modifies the experimental 'Super attribute to allow an access-valued prefix to be equivalent to Prefix.all'Super. gcc/ada/ * sem_attr.adb: (Analyze_Attribute): Add check for dereference. --- diff --git a/gcc/ada/sem_attr.adb b/gcc/ada/sem_attr.adb index 22fbca45ac5..2563a92f2f0 100644 --- a/gcc/ada/sem_attr.adb +++ b/gcc/ada/sem_attr.adb @@ -6688,6 +6688,7 @@ package body Sem_Attr is Error_Msg_GNAT_Extension ("attribute %", Sloc (N)); Check_E0; + Check_Dereference; -- Verify that we are looking at a type with ancestors