This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [4.1 PATCH] Fix ICE on friend templatized static method (PR c++/29054)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]