diff options
author | Steve Baird <baird@adacore.com> | 2021-12-15 15:13:39 -0800 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2022-05-09 09:27:34 +0000 |
commit | ea7967ebdf76969a54a47dda96115c04057c4aba (patch) | |
tree | f25a9ff8bac9b0c4f4daf6db769180dd096b14de /gcc/system.h | |
parent | 09cca56d660042991a7267b568641e16e77d0ba1 (diff) | |
download | gcc-ea7967ebdf76969a54a47dda96115c04057c4aba.zip gcc-ea7967ebdf76969a54a47dda96115c04057c4aba.tar.gz gcc-ea7967ebdf76969a54a47dda96115c04057c4aba.tar.bz2 |
[Ada] Properly handle unprefixed references to components
In some cases, the compiler would incorrectly reject unprefixed uses of
component names in an aspect specification for the composite type.
Correct this error.
gcc/ada/
* sem_ch13.adb (Replace_Type_Ref): In the case of an identifier
that names a component of the type, simplify the test to decide
whether to build a prefix for it (the prefix denotes the current
instance of the enclosing type): if the identifier doesn't
already have a prefix, then give it one. This isn't quite right
in the corner case of a quantified expression or some other such
expression that declares an object with the same name as a
component, but it is still an improvement.
Diffstat (limited to 'gcc/system.h')
0 files changed, 0 insertions, 0 deletions