* g++.dg/ipa/devirt-35.C: Fix template.
commitf30f9a2ce9edca660db92413b02ac83253b9189d
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 9 Aug 2014 22:07:55 +0000 (9 22:07 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 9 Aug 2014 22:07:55 +0000 (9 22:07 +0000)
treef766c9e6c63fdc2649a1496d7e34bbb9a9a0a8d1
parent434a8652bcfca85cc7943f40edcb446d3836df0e
* g++.dg/ipa/devirt-35.C: Fix template.
* g++.dg/ipa/devirt-36.C: Likewise.
* g++.dg/ipa/devirt-37.C: New testcase.
* ipa-devirt.c (get_dynamic_type): Handle case when instance is in
DECL correctly; do not give up on types in static storage.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213781 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/ipa-devirt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/devirt-35.C
gcc/testsuite/g++.dg/ipa/devirt-36.C
gcc/testsuite/g++.dg/ipa/devirt-37.C [new file with mode: 0644]