]> 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)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 4 Nov 2024 15:57:58 +0000 (16:57 +0100)
commit7bcfdac0ef763587efd014310b779e192b143c62
tree6ed56decb659aa953276f1b421cb093198d27289
parent56ea463808d47cc8bf342b32125e793cfcde472d
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