aboutsummaryrefslogtreecommitdiff
path: root/gcc/dump-context.h
diff options
context:
space:
mode:
authorBob Duff <duff@adacore.com>2023-03-29 13:57:35 -0400
committerMarc Poulhiès <poulhies@adacore.com>2023-05-26 09:29:20 +0200
commitce081284bde18cf554ac7c10166581c8c667a6b7 (patch)
tree73d1e6592abae6dd89e6300acab3f6b93285b5a6 /gcc/dump-context.h
parent19668be0f8673a3545b0ad823fe1dd459f2f6772 (diff)
downloadgcc-ce081284bde18cf554ac7c10166581c8c667a6b7.zip
gcc-ce081284bde18cf554ac7c10166581c8c667a6b7.tar.gz
gcc-ce081284bde18cf554ac7c10166581c8c667a6b7.tar.bz2
ada: Corrections to premature-references rules
This patch corrects the implementation of RM-8.3(17), which says that a record extension is self-hidden until "record". Previously, such premature references could cause a compiler crash. gcc/ada/ * sem_ch3.adb (Build_Derived_Record_Type): Temporarily set the state of the Derived_Type to "self-hidden" while processing constraints and discriminants of a record extension.
Diffstat (limited to 'gcc/dump-context.h')
0 files changed, 0 insertions, 0 deletions