diff options
Diffstat (limited to 'gcc/ada/par-ch4.adb')
| -rw-r--r-- | gcc/ada/par-ch4.adb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ada/par-ch4.adb b/gcc/ada/par-ch4.adb index 79aa85f..f16d828 100644 --- a/gcc/ada/par-ch4.adb +++ b/gcc/ada/par-ch4.adb @@ -434,7 +434,12 @@ package body Ch4 is elsif Token = Tok_Identifier then Attr_Name := Token_Name; - if not Is_Attribute_Name (Attr_Name) then + -- Note that internal attributes names don't denote real + -- attribute. + + if not Is_Attribute_Name (Attr_Name) + or else Is_Internal_Attribute_Name (Attr_Name) + then if Apostrophe_Should_Be_Semicolon then Expr_Form := EF_Name; return Name_Node; |
