------- Comment #5 from manu at gcc dot gnu dot org 2007-10-12 14:59 ------- (In reply to comment #3) > > the first error message is always an error: > > static bool > cp_parser_non_integral_constant_expression (cp_parser *parser, > const char *thing) > { > parser->non_integral_constant_expression_p = true; > if (parser->integral_constant_expression_p) > { > if (!parser->allow_non_integral_constant_expression_p) > { > error ("%s cannot appear in a constant-expression", thing); > return true; >
It seems that "-pedantic" is affecting parser->allow_non_integral_constant_expression_p somehow. Weird. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33750