This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Fix 13242
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: Mark Mitchell <mitchell at codesourcery dot com>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 15 Dec 2003 10:51:46 -0800
- Subject: Re: [C++ PATCH] Fix 13242
- Organization: CodeSourcery, LLC
- References: <3FDDFAB3.2000001@codesourcery.com>
- Reply-to: mark at codesourcery dot com
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