[patch] Fix PR lto/84805

Eric Botcazou ebotcazou@adacore.com
Mon Mar 12 23:07:00 GMT 2018


this is an ICE in LTO mode on code violating the ODR rule: get_odr_type checks 
that there is a sensible internal order between base, type and derived types 
but this can be easily messed up by incomplete types.  Hence the attached 
fixlet (no testcase because the -Wodr warnings have a totally random order).

Tested on x86-64/Linux, OK for the mainline?

2018-03-12  Eric Botcazou  <ebotcazou@adacore.com>

	PR lto/84805
	* ipa-devirt.c (odr_subtypes_equivalent_p): Do not get the ODR type of
	incomplete types.

Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr84805.diff
Type: text/x-patch
Size: 1173 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180312/92aa88b5/attachment.bin>

More information about the Gcc-patches mailing list