diff options
author | Piotr Trojanek <trojanek@adacore.com> | 2021-10-05 15:29:44 +0200 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2023-05-26 09:29:17 +0200 |
commit | fd3eff65551876a04febca1621d7d19f9390aab6 (patch) | |
tree | 74fa0b2f004643c6bb7cfd948ca9a44e001082b7 /gcc/fortran/st.cc | |
parent | 4f591201821b4e236f79486fa3ae881a8b2d5212 (diff) | |
download | gcc-fd3eff65551876a04febca1621d7d19f9390aab6.zip gcc-fd3eff65551876a04febca1621d7d19f9390aab6.tar.gz gcc-fd3eff65551876a04febca1621d7d19f9390aab6.tar.bz2 |
ada: Fix handling of Global contracts inside generic subprograms
Routine Get_Argument works differently for generic units (as explained
in its comment), but it failed to reliably detect such units when their
kind is temporarily made non-generic (for resolving recursive calls, as
explained in the comment at the end of Is_Generic_Declaration_Or_Body).
With this patch the frontend will look at the decorated expression of
the Global contract attached to the Global aspect; previously it was
looking at the undecorated expression attached to the corresponding
pragma.
gcc/ada/
* sem_prag.adb (Get_Argument): Improve detection of generic units.
Diffstat (limited to 'gcc/fortran/st.cc')
0 files changed, 0 insertions, 0 deletions