diff options
author | Bob Duff <duff@adacore.com> | 2023-03-29 13:57:35 -0400 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2023-05-26 09:29:20 +0200 |
commit | ce081284bde18cf554ac7c10166581c8c667a6b7 (patch) | |
tree | 73d1e6592abae6dd89e6300acab3f6b93285b5a6 /gcc/fortran | |
parent | 19668be0f8673a3545b0ad823fe1dd459f2f6772 (diff) | |
download | gcc-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/fortran')
0 files changed, 0 insertions, 0 deletions