]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix crash on access to protected return
authorRonan Desplanques <desplanques@adacore.com>
Mon, 27 Jan 2025 11:04:41 +0000 (12:04 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Thu, 5 Jun 2025 08:18:37 +0000 (10:18 +0200)
commit201fd7899da99767f88fbd75d61b20fdc0cc190d
tree987abac4694f22d0ccc58eeb5a184cdf8ace23b7
parenta7c5e316e28c993952337ea7a5570cb5d1df1daa
ada: Fix crash on access to protected return

The generation of the check mandated by Ada issue AI05-0073 was not done
handled properly for protected types when used through subtypes. This
patch fixes the issue.

gcc/ada/ChangeLog:

* exp_ch4.adb (Tagged_Membership): Fix for protected types.
gcc/ada/exp_ch4.adb