PR c++/84798 - ICE with auto in abstract function declarator.
commitc1fed38f528e7443375294034a1aff1a9b856d25
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Mar 2018 15:55:07 +0000 (13 15:55 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Mar 2018 15:55:07 +0000 (13 15:55 +0000)
tree9bf6a0902709e286b6f0fc18edb549616545fbea
parent2bc9729cac37dee999f4fb48a166cffc198293aa
PR c++/84798 - ICE with auto in abstract function declarator.

* parser.c (cp_parser_parameter_declaration_clause): Check
parser->default_arg_ok_p.

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