]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix internal error on alignment clause for type declared in generic unit
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 10 Oct 2024 11:06:12 +0000 (13:06 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 4 Nov 2024 15:57:56 +0000 (16:57 +0100)
commitf6afd361c53c319f5151ddd6c0700eea8b0125c9
treedfadca93293e85ce59d492ea1b9f25c0ff8a6b0a
parenta0b57f6ff5c8eff7e8c17a28ccbed7b11ddc82e7
ada: Fix internal error on alignment clause for type declared in generic unit

The front-end raises Program_Error on an alignment clause for a type in a
generic unit that references the alignment of another type in the unit.

gcc/ada/ChangeLog:

PR ada/117051
* freeze.adb (Freeze_Entity): Call the layout procedure on subtypes
declared in a generic unit when they are static.
gcc/ada/freeze.adb