[Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
igodard at pacbell dot net
gcc-bugzilla@gcc.gnu.org
Fri Apr 30 20:13:00 GMT 2004
------- Additional Comments From igodard at pacbell dot net 2004-04-30 19:55 -------
Bangaerth suggested a workaround by duplicating the constructor, one with and one without the argument. But there's an even easier workaround: somply parenthesize the default value. I'd suggest that gcc should do this - although the lexical text of the default is not the same as in the standard, this solutiion preserves the actual default values required by the standard and compiles without error.
Ivan
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
More information about the Gcc-bugs
mailing list