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: [C++ PATCH] Fix 13242


On Mon, 2003-12-15 at 10:17, Nathan Sidwell wrote:
> Mark
> this fixes 13242 where we mangled template parameters of reference type
> with a spurious '&'. Internally we represent these things as
> (NOP_EXPR <ref-type> (ADDR_EXPR <ptr-type> object))
> 
> booted & tested on i686-pc-linux-gnu, ok?

Yes.

This is a clever approach.  I looked at this bug once, and wanted to fix
it by making the template argument not use the ADDR_EXPR at all, but
that didn't seem to be possible.  At least not easily.

-- 
Mark Mitchell <mark@codesourcery.com>
CodeSourcery, LLC


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