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: Sun, 24 Jul 2016 02:21:00 +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/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52746
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Sun Jul 24 02:20:17 2016
New Revision: 238682
URL: https://gcc.gnu.org/viewcvs?rev=238682&root=gcc&view=rev
Log:
PR c++/71748 - call to base destructor in template.
PR c++/52746
* pt.c (tsubst_baselink): Call
adjust_result_of_qualified_name_lookup for unqualified
destructors.
Added:
branches/gcc-6-branch/gcc/testsuite/g++.dg/template/dtor10.C
Modified:
branches/gcc-6-branch/gcc/cp/ChangeLog
branches/gcc-6-branch/gcc/cp/pt.c