]> gcc.gnu.org Git - gcc.git/commit
ada: Fix detection of external calls to protected objects in instances
authorPiotr Trojanek <trojanek@adacore.com>
Fri, 14 Oct 2022 18:22:34 +0000 (20:22 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 7 Nov 2022 08:36:34 +0000 (09:36 +0100)
commit7dee088c9db6a420b60379dd576493d12c055ffd
tree2771ffbf848218ba7a7d91d2d7c6b852a91f53fa
parent90908af3f8648567f1027260d38e5979e45066a3
ada: Fix detection of external calls to protected objects in instances

Detection of external-vs-internal calls to protected objects relied on
the scope stack. This didn't work when the call appeared in an instance
of generic unit, because instances are analyzed in different context to
where they appear.

gcc/ada/

* exp_ch6.adb (Expand_Protected_Subprogram_Call): Examine scope
tree and not the scope stack.
gcc/ada/exp_ch6.adb
This page took 0.065787 seconds and 6 git commands to generate.