re PR lto/64043 (ICE (segfault) with LTO: in tree_check/tree.h:2758 get_binfo_at_offs...
authorJan Hubicka <hubicka@gcc.gnu.org>
Mon, 15 Dec 2014 03:41:41 +0000 (03:41 +0000)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 15 Dec 2014 03:41:41 +0000 (03:41 +0000)
commitbebecd51b6d2bb0f29423a582b0294183392e0d4
tree5c599da445c4658615bd7d6ae1567f48487ceaa6
parent1bf7c3241444b26d2b89b7731de198a9139b7d4e
re PR lto/64043 (ICE (segfault) with LTO: in tree_check/tree.h:2758 get_binfo_at_offset/tree.c:11914)

PR lto/64043
* tree.c (virtual_method_call_p): Return false when OTR type has
no BINFO.
* g++.dg/lto/pr64043_0.C: New testcase.

From-SVN: r218727
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/pr64043_0.C [new file with mode: 0644]
gcc/tree.c