http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52746
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2012-03-29 13:20:24 UTC --- Author: jason Date: Thu Mar 29 13:20:18 2012 New Revision: 185961 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185961 Log: PR c++/52746 * typeck.c (lookup_destructor): Clear BASELINK_QUALIFIED_P if we didn't get an explicit scope. * pt.c (tsubst_baselink): Likewise. Added: branches/gcc-4_7-branch/gcc/testsuite/g++.dg/overload/virtual2.C Modified: branches/gcc-4_7-branch/gcc/cp/ChangeLog branches/gcc-4_7-branch/gcc/cp/pt.c branches/gcc-4_7-branch/gcc/cp/typeck.c branches/gcc-4_7-branch/gcc/testsuite/ChangeLog