]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Compile time crash on limited object in extended return
authorsquirek <squirek@adacore.com>
Wed, 30 Oct 2024 16:33:29 +0000 (16:33 +0000)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 12 Nov 2024 13:05:48 +0000 (14:05 +0100)
commitc77a2cf0ec892256ef47edf373607d3b0a807210
tree69abc0ffdc9586f15c0091bf0dbdd49529e5b31c
parentd34069c3ffaac95ba880ba12de26972bc3fb91b8
ada: Compile time crash on limited object in extended return

This patch fixes an error in the compiler whereby using an extended return on
an object of limited tagged type which extends a tagged protected type may lead
to a compile-time crash.

gcc/ada/ChangeLog:

* exp_ch3.adb (Build_Assignment): Add condition to fetch corresponding
record types for concurrent tagged types.
gcc/ada/exp_ch3.adb