]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix crash on default value with nested iterated component associations
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 16 Oct 2024 07:05:55 +0000 (09:05 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Mon, 4 Nov 2024 16:48:11 +0000 (17:48 +0100)
commiteb929c391fe1e6c2e343abbf9464210554da415b
treedfaf6f94c89af1c9e266773f6b246e75abbb5ebc
parent3ed8c16f618461670336c84d1fbc713f086f30bd
ada: Fix crash on default value with nested iterated component associations

The problem is that the freeze node for the type of the element ends up in
the component list of the record type declared with the default value.

gcc/ada/ChangeLog:

PR ada/113036
* freeze.adb (Freeze_Expression): Deal with freezing actions coming
from within nested internal loops present in spec expressions.
gcc/ada/freeze.adb