re PR c++/52746 (Explicit virtual destructor call replaced by direct call in template...
authorJason Merrill <jason@redhat.com>
Thu, 29 Mar 2012 02:58:29 +0000 (22:58 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 29 Mar 2012 02:58:29 +0000 (22:58 -0400)
commit917c1602aa2bf8905890ee6c19a1624f80b1c8c3
tree4946f8b06c2a67368948ab16136b0306ad0cf725
parent8187e104e7dd134ef00d5114a1663ceefad92c3d
re PR c++/52746 (Explicit virtual destructor call replaced by direct call in template function)

PR c++/52746
* typeck.c (lookup_destructor): Clear BASELINK_QUALIFIED_P if
we didn't get an explicit scope.
* pt.c (tsubst_baselink): Likewise.

From-SVN: r185945
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/overload/virtual2.C [new file with mode: 0644]