[Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
nathan at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Nov 29 09:26:00 GMT 2004
------- Additional Comments From nathan at gcc dot gnu dot org 2004-11-29 09:26 -------
(In reply to comment #22)
> (In reply to comment #21)
> > *** Bug 18688 has been marked as a duplicate of this bug. ***
>
> Is it really a dupe?
yes.
> The bug I raised only involved a templated argument, the
> class with the member function is not templated.
yes
> Besides which, if its invalid
> as a member function, why is it not invalid stand-alone?
because non-member's default args can be parsed immediately, member's
default args cannot be.
> And why should typedef's get around it?
because those do not have commas in them
read DR325 for gory details
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
More information about the Gcc-bugs
mailing list