This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/42336] [4.5 Regression] ICE with pointer-to-member-function argument in template function
- From: "jason at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jan 2010 19:45:56 -0000
- Subject: [Bug c++/42336] [4.5 Regression] ICE with pointer-to-member-function argument in template function
- References: <bug-42336-17896@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #18 from jason at redhat dot com 2010-01-12 19:45 -------
Subject: Re: [4.5 Regression] ICE with pointer-to-member-function
argument in template function
On 01/10/2010 06:42 PM, hubicka at gcc dot gnu dot org wrote:
> In general I am not sure plan of doing all
> datastructure/function call conventions changes via cloning is coolest idea.
Well, just pretending that a particular parameter never existed isn't
acceptable from a debugging standpoint; I think we need to have a
separate modified decl which points back to the original unmodified decl
with DECL_ABSTRACT_ORIGIN.
Beyond that, it might be possible to avoid much copying by just moving
the function body over from the original decl to the modified one.
Jason
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42336