]> 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)
committerEric Botcazou <ebotcazou@adacore.com>
Thu, 5 Jun 2025 13:39:41 +0000 (15:39 +0200)
commit257a8dc92efbc5f523d388da10d63bf126af2aa3
tree35fbdfd866051da06d013356295796a9284ea64f
parent6b1c8f47583c8fb35009b8dead605f623aeb5376
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