diff options
author | Justin Squirek <squirek@adacore.com> | 2022-11-23 07:56:45 +0000 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2022-11-24 11:11:25 +0100 |
commit | af94026524eafbe1270e28e5142e5958a4dadf07 (patch) | |
tree | 2c55cd027b0bbd4ca8173daa9baaf17cd281ba92 /gcc/ada/gcc-interface/trans.cc | |
parent | a42e39a7b974645d2820931357e99411fdb0beb6 (diff) | |
download | gcc-af94026524eafbe1270e28e5142e5958a4dadf07.zip gcc-af94026524eafbe1270e28e5142e5958a4dadf07.tar.gz gcc-af94026524eafbe1270e28e5142e5958a4dadf07.tar.bz2 |
ada: Spurious error on Lock_Free protected type with discriminants
This patch corrects an issue in the compiler whereby unprefixed discriminants
appearing in protected subprograms were unable to be properly resolved -
leading to spurious resolution errors.
gcc/ada/
* sem_ch8.adb
(Find_Direct_Name): Remove bypass to reanalyze incorrectly
analyzed discriminals.
(Set_Entity_Or_Discriminal): Avoid resetting the entity field of a
discriminant reference to be the internally generated renaming
when we are in strict preanalysis mode.
Diffstat (limited to 'gcc/ada/gcc-interface/trans.cc')
0 files changed, 0 insertions, 0 deletions