diff options
author | Marc Poulhiès <poulhies@adacore.com> | 2022-12-15 11:32:19 +0100 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2023-01-05 15:29:59 +0100 |
commit | 912d1e184a4f6c66bc57893e5745ec74009b4fd1 (patch) | |
tree | 958722de66b1709da15601fc379424ad0d8c179e /gcc/rust/resolve | |
parent | 2aa5f94243c5d463cc62a3c91ebf87fb1c665b83 (diff) | |
download | gcc-912d1e184a4f6c66bc57893e5745ec74009b4fd1.zip gcc-912d1e184a4f6c66bc57893e5745ec74009b4fd1.tar.gz gcc-912d1e184a4f6c66bc57893e5745ec74009b4fd1.tar.bz2 |
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.
Diffstat (limited to 'gcc/rust/resolve')
0 files changed, 0 insertions, 0 deletions