This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52746] [4.7/4.8 Regression] Explicit virtual destructor call replaced by direct call in template function
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 29 Mar 2012 13:20:24 +0000
- Subject: [Bug c++/52746] [4.7/4.8 Regression] Explicit virtual destructor call replaced by direct call in template function
- Auto-submitted: auto-generated
- References: <bug-52746-4@http.gcc.gnu.org/bugzilla/>
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