]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Early freezeing of types with 'Size'Class
authorsquirek <squirek@adacore.com>
Tue, 13 Aug 2024 11:42:41 +0000 (11:42 +0000)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 8 Oct 2024 08:37:13 +0000 (10:37 +0200)
commit0171938cfc357ed43c2b95ddee504f614cac7982
tree994e2fedb6648b7dbe641ffbf32616d357aa4550
parentd9b76deb580eb4fc5046d6c0263f420acaa444c9
ada: Early freezeing of types with 'Size'Class

This patch fixes an issue in the compiler whereby declarations of derived types
whose parent is a mutably tagged type cause early freezing of the parent type -
leading to spurious compile-time errors.

gcc/ada/ChangeLog:
* sem_ch3.adb (Derived_Type_Declaration): Modify generation of
compile time check.
gcc/ada/sem_ch3.adb