aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2022-07-01 10:47:36 +0200
committerPierre-Marie de Rodat <derodat@adacore.com>2022-07-13 10:01:14 +0000
commit6faa271f09f32b32a6f4e32e3964faadc8372907 (patch)
treea1a014c040f8b542924dd97f9efa82bed6c6ae46 /gcc/objc
parent730814edc8b3c1bc872c54a39064ac59e2b8fdbd (diff)
downloadgcc-6faa271f09f32b32a6f4e32e3964faadc8372907.zip
gcc-6faa271f09f32b32a6f4e32e3964faadc8372907.tar.gz
gcc-6faa271f09f32b32a6f4e32e3964faadc8372907.tar.bz2
[Ada] Fix internal error on untagged record type with equality operator
After the binding interpretation issued under AI12-0413, a user-defined primitive equality operator of an untagged record type hides the predefined equality operator in an instantiation, but this does not apply if the instantiation appears in the same declarative region as the type and before the declaration of this user-defined operator. gcc/ada/ * sem_res.adb (Resolve_Equality_Op): Make sure that the user-defined operator of an untagged record type is declared ahead of an instance before using it to resolve the equality operator in the instance.
Diffstat (limited to 'gcc/objc')
0 files changed, 0 insertions, 0 deletions