/cp
commit265fadd8490ab3ba95ed8c71b40262c8fa22ffff
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 6 Jul 2013 08:54:56 +0000 (6 08:54 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 6 Jul 2013 08:54:56 +0000 (6 08:54 +0000)
tree0b0bbcb0102dac83bf4b9a61a67885dcc67f3b9a
parent6969f9f7eb9372a32211e74028f36a81d12a1e44
/cp
2013-07-06  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-06  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/28262
* g++.dg/parse/defarg16.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200730 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/defarg16.C [new file with mode: 0644]