]> gcc.gnu.org Git - gcc.git/commit
ada: Fix generic instantiation of sibling package
authorMarc Poulhiès <poulhies@adacore.com>
Thu, 15 Dec 2022 10:32:19 +0000 (11:32 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Thu, 5 Jan 2023 14:29:59 +0000 (15:29 +0100)
commit912d1e184a4f6c66bc57893e5745ec74009b4fd1
tree958722de66b1709da15601fc379424ad0d8c179e
parent2aa5f94243c5d463cc62a3c91ebf87fb1c665b83
ada: Fix generic instantiation of sibling package

The compiler would crash because it is failing at setting up the scope
stack correctly for a generic instantiation of a sibling package within
a child package instance. In this case, the parent instance isn't
explicitly referenced and it must be found differently.

gcc/ada/

* sem_ch12.adb (Instantiate_Package_Body): Correctly find the
parent instance to place on the scope stack.
gcc/ada/sem_ch12.adb
This page took 0.058165 seconds and 5 git commands to generate.