This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Dependent names in template
- From: Michael Veksler <VEKSLER at il dot ibm dot com>
- To: Jonathan Wakely <cow at compsoc dot man dot ac dot uk>
- Cc: gcc at gcc dot gnu dot org, Mark Mitchell <mark at codesourcery dot com>
- Date: Sun, 8 Aug 2004 09:14:13 +0300
- Subject: Re: Dependent names in template
Mark, I think that you are wrong (based on a previous thread),
and it's a bug in gcc.
Take a look at
http://gcc.gnu.org/ml/gcc/2004-04/msg00691.html
According to Gaby (Gabriel Dos Reis), if my interpretation is correct,
builtin types behave differently. I don't quite understand everything
that Gaby said, so I'll just paste it:
> However, because double is
> a builtin type, the set its associated namespaces and classes is
> empty. Therefore, the call fails for "no matching" function.
It seems to apply to this case as well (int_type happens to be builtin).
Jonathan Wakely wrote on 06/08/2004 11:03:17:
> On Thu, Aug 05, 2004 at 04:53:25PM -0700, Mark Mitchell wrote:
>
> > Jonathan Wakely wrote:
> [snip]
> > >Is G++ wrong here? If so is there a bugzilla report already? (I
couldn't
> > >find one) Is correcting these tiny corner-cases in G++'s now
excellent
> > >parsing on the radar yet?
> > >
> > >
> > I do not think these are bugs in G++ -- although I've been wrong
before.
>
> OK, thanks Mark.
>
> Unfortunately that's the same answer as Comeau gave me when I asked them
> why their compiler rejected the code, so I'm still not sure what's
correct.
>
> I guess I'd better ask on c.l.c.m
>
Michael