re PR c++/60393 ([c++1y] ICE with with invalid functions with auto parameters)
authorAdam Butcher <adam@jessamine.co.uk>
Sat, 8 Mar 2014 09:33:03 +0000 (09:33 +0000)
committerAdam Butcher <abutcher@gcc.gnu.org>
Sat, 8 Mar 2014 09:33:03 +0000 (09:33 +0000)
commit14e62702520cd5fc0907e1d777ee1ae6dfabd582
treea6678262c6c2efdbb57c446e8cc7c23f56d12783
parentbd65fc87824ef69e69c6e79cd1323b43b77e0866
re PR c++/60393 ([c++1y] ICE with with invalid functions with auto parameters)

Fix PR c++/60393

PR c++/60393
* parser.c (cp_parser_parameter_declaration_clause): Move generic
function template unwinding on error into a more general location, ...
(cp_parser_skip_to_end_of_statement): ... here.

PR c++/60393
* g++.dg/cpp1y/pr60393.C: New testcase.

From-SVN: r208426
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/pr60393.C [new file with mode: 0644]