Dependent names in template

Michael Veksler VEKSLER@il.ibm.com
Sun Aug 8 06:39:00 GMT 2004


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



More information about the Gcc mailing list