[Ada] Fix internal error on multiple nested instantiations
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 2 Oct 2020 17:15:05 +0000 (19:15 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 24 Nov 2020 10:16:02 +0000 (05:16 -0500)
commitdcb1cad0e0747501e9d54eeec6b0481eb87d23c5
treec9da9866f4c2358954f3ff51c416804f103a31ce
parente269fedf8c150f26e7651c0093ce02bef11ed5d6
[Ada] Fix internal error on multiple nested instantiations

gcc/ada/

* sem_ch12.adb (Analyze_Associations) <Explicit_Freeze_Check>: Test
that the instance is in a statement sequence instead of local scope.
(Freeze_Subprogram_Body): Use the special delayed placement with
regard to the parent instance only if its Sloc is strictly greater.
(Install_Body): Likewise.
gcc/ada/sem_ch12.adb