[Ada] Fix problematic placement of freeze node after instantiation
commit4cd2e6f249e55c810c0414572807face97d88f07
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 5 Aug 2020 13:50:06 +0000 (5 15:50 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 21 Oct 2020 07:22:50 +0000 (21 03:22 -0400)
treeb2818db1f42d9ab0b0d315d7dea1873f5f796689
parent3d3378fbb2f0183d0b6bfc41187c941dc57f7dcc
[Ada] Fix problematic placement of freeze node after instantiation

gcc/ada/

* sem_ch12.adb (Freeze_Subprogram_Body): Do not move the freeze
node of the package body enclosing the instance when its parent
is in the same declarative part as the freeze node of the parent.
gcc/ada/sem_ch12.adb