[Ada] Crash on expansion of tagged membership test

Pierre-Marie de Rodat derodat@adacore.com
Tue Nov 9 09:46:16 GMT 2021


This patch corrects an issue in the compiler whereby the expansion of a
tagged membership test when one of the types involved is a protected
type can cause a crash a compile-time.

Tested on x86_64-pc-linux-gnu, committed on trunk

gcc/ada/

	* exp_ch4.adb (Tagged_Membership): Use corresponding record type
	when expanding a tagged membership test on protected types.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 817 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20211109/1b1e203e/attachment.bin>


More information about the Gcc-patches mailing list