Commit Message

Hi,
this old issue is about default arguments not rejected for function
typedefs. We have got infrastructure for that - parser->default_arg_ok_p
- and it seems to me that we can safely set the flag to false in
cp_parser_init_declarator when the decl_specifier has ds_typedef set.
Tested x86_64-linux.
Thanks,
Paolo.
////////////////////////
/cp
2013-07-05 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/28262
* parser.c (cp_parser_init_declarator): If we are parsing a typedef
set parser->default_arg_ok_p to false before cp_parser_declarator.
/testsuite
2013-07-05 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/28262
* g++.dg/parse/defarg16.C: New.