ipa-devirt.c (odr_types_equivalent_p): Do not ICE if one of types is anonymous.
authorJan Hubicka <jh@suse.cz>
Thu, 25 Oct 2018 12:18:28 +0000 (14:18 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 25 Oct 2018 12:18:28 +0000 (12:18 +0000)
commit09d3f04eaea862476be3c74fd84f06ec1afb1e68
tree237bd6c29959d29d83c737b92ba8bf346e4adb03
parent46ec9261008a118470c43d6b7eeb95e4c4b12e67
ipa-devirt.c (odr_types_equivalent_p): Do not ICE if one of types is anonymous.

* ipa-devirt.c (odr_types_equivalent_p): Do not ICE if one of types
is anonymous.
* g++.dg/lto/odr-1_0.C: New test.
* g++.dg/lto/odr-1_1.C: New test.

From-SVN: r265484
gcc/ChangeLog
gcc/ipa-devirt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/odr-1_0.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/odr-1_1.C [new file with mode: 0644]