This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Foo<int,(char*)&string>
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Michael Elizabeth Chastain <mec dot gnu at mindspring dot com>
- Cc: carlton at kealia dot com, gdb at sources dot redhat dot com
- Date: Mon, 16 Feb 2004 21:44:42 -0500
- Subject: Re: Foo<int,(char*)&string>
- References: <20040217022008.24CA64B104@berman.michael-chastain.com>
On Mon, Feb 16, 2004 at 09:20:08PM -0500, Michael Chastain wrote:
> The second template parameter is a "char *"; a value, not a type.
>
> gcc 3.3.2 -gstabs+ emits this:
>
> .stabs "Foo<int,&string>:Tt(1,1)=..."
>
> gcc HEAD -gstabs+ just changed to emit this:
>
> .stabs "Foo<int,(char*)(&string)>:Tt(0,25)=..."
>
> Do we care? I think the "(char*)(&string)" looks ugly but is legal.
> I want to change templates.exp to accept this as a PASS. I've found
> enough serious stabs+ bugs with gcc that I don't want to make a fuss
> over this difference.
>
> What do you think?
I don't care. Eventually hopefully we will canonicalize this. Code to
do it is on drow-cplus-branch (but not used, even there; it can't be
until some other startup performance issues are resolved...).
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer