PR c++/84798 - ICE with auto in abstract function declarator.
authorJason Merrill <jason@redhat.com>
Tue, 13 Mar 2018 15:55:07 +0000 (11:55 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 13 Mar 2018 15:55:07 +0000 (11:55 -0400)
commit426c1e2ec7b42902a80a20cb3965a69061b8345b
tree9bf6a0902709e286b6f0fc18edb549616545fbea
parentf99309b288733c88d5369af11a6c11dcc307ff49
PR c++/84798 - ICE with auto in abstract function declarator.

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

From-SVN: r258493
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