This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: 4.5 RFA: C++ PATCH for c++/43648 (ice on valid explicit destructor call)
- From: Richard Guenther <rguenther at suse dot de>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 7 Apr 2010 10:31:45 +0200 (CEST)
- Subject: Re: 4.5 RFA: C++ PATCH for c++/43648 (ice on valid explicit destructor call)
- References: <4BBB5CE9.3040201@redhat.com>
On Tue, 6 Apr 2010, Jason Merrill wrote:
> My changes to implement DR 147 caused the lookup of ScalarView::~ScalarView to
> produce a TYPENAME_TYPE for the lookup of the second "ScalarView". And since
> ScalarView is a local typedef, resolving the TYPENAME_TYPE at template
> instantiation time fails.
>
> This patch fixes this testcase by just recognizing that the name matches the
> name before the ::~ and leaving it at that. This isn't a complete fix, but
> should cover the common cases.
>
> This patch seems small enough, and the regression potentially serious enough,
> to be worth putting into 4.5.0 if that's feasible.
If you are confident of the patch then it's ok to commit to the branch
now.
Richard.