re PR c++/39106 (aliased to undefined symbol error with thunks)
authorJakub Jelinek <jakub@redhat.com>
Thu, 5 Feb 2009 21:54:06 +0000 (22:54 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 5 Feb 2009 21:54:06 +0000 (22:54 +0100)
commite6e1c050c5b545eeb8644b65e421e0dab61a7c08
tree455a7dd2b93b6aa29952096e28035c3b04b31ee9
parent65a74b5d5b6b36052ca989c82e329b52a55121ff
re PR c++/39106 (aliased to undefined symbol error with thunks)

PR c++/39106
* cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
on the copied decl.

* g++.dg/opt/thunk3.C: New test.

From-SVN: r143973
gcc/ChangeLog
gcc/cgraphunit.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/thunk3.C [new file with mode: 0644]