This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [4.1 PATCH] Fix ICE on friend templatized static method (PR c++/29054)
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 02 Jan 2007 20:12:29 -0800
- Subject: Re: [4.1 PATCH] Fix ICE on friend templatized static method (PR c++/29054)
- References: <20070102230729.GQ29911@devserv.devel.redhat.com>
Jakub Jelinek wrote:
> 2007-01-02 Jakub Jelinek <jakub@redhat.com>
>
> PR c++/29054
> * decl.c (revert_static_member_fn): Don't remove first
> argument without checking it is "this".
>
> * g++.dg/template/friend49.C: New test.
Ugly -- but for the 4.1 branch, I think this is a nice, safe hack.
This is OK. Thanks,
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713