ada: Fix nested generic instantiation
commit07facb98ed0db8771fd36e6c73921177c11b18ea
authorMarc Poulhiès <poulhies@adacore.com>
Wed, 21 Dec 2022 09:29:38 +0000 (21 10:29 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Thu, 5 Jan 2023 14:30:01 +0000 (5 15:30 +0100)
treec9110bdf082dee35008541af116cfb2ac3a124ac
parent3f7776ea33a6ba9dac28bff8a521de04a728e19f
ada: Fix nested generic instantiation

Previous fix for generic instantiation was not precise enough and could
wrongly assume the instantiation node to be an N_Expanded_Name.

gcc/ada/

* sem_ch12.adb (Instantiate_Package_Body): Better filtering when
installing parent on the scope stack.
gcc/ada/sem_ch12.adb