re PR c++/91222 (507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt...
authorJan Hubicka <hubicka@ucw.cz>
Tue, 1 Oct 2019 18:21:31 +0000 (20:21 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 1 Oct 2019 18:21:31 +0000 (18:21 +0000)
commit56f1a16caeb447934c4c5209664984560b17e63a
tree3367f01cba2008b23c701a10e85e333bd508bcf1
parenta9346b558b58edbc9ffceacbb23a26c61eac4bf9
re PR c++/91222 (507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571)

PR lto/91222
* ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
is matched with non-C++ type
* g++.dg/lto/odr-6_0.C: New testcase.
* g++.dg/lto/odr-6_1.c: New testcase.

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