re PR ipa/60871 (internal compiler error: in possible_polymorphic_call_targets, at...
authorJan Hubicka <hubicka@ucw.cz>
Tue, 27 Jan 2015 19:39:37 +0000 (20:39 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 27 Jan 2015 19:39:37 +0000 (19:39 +0000)
commite23f28927f1922bd684d985901d13588a942fbd4
tree6f53950bc7b11bf868f62ef87364acf75ca6c161
parent94e54b8d14ac5525d8a4004e0450f5c6fff50252
re PR ipa/60871 (internal compiler error: in possible_polymorphic_call_targets, at ipa-devirt.c:1510)

PR ipa/60871
PR ipa/64139
* tree.c (lookup_binfo_at_offset): New function.
(get_binfo_at_offset): Use it.

* g++.dg/torture/pr64139.C: New testcase.
* g++.dg/torture/pr60871.C: Likewise.

From-SVN: r220185
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr60871.C [new file with mode: 0644]
gcc/testsuite/g++.dg/torture/pr64139.C [new file with mode: 0644]
gcc/tree.c