[C++ PATCH] Fix 13242

Nathan Sidwell nathan@codesourcery.com
Tue Dec 16 11:02:00 GMT 2003


Mark Mitchell wrote:
> 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))

> 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.
Yeah, that was the conclusion I came to.

nathan

-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
          The voices in my head said this was stupid too
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk




More information about the Gcc-patches mailing list