Re: [PATCH] Fix PR c++/60393

2014-03-07 Thread Jason Merrill
OK. Jason

[PATCH] Fix PR c++/60393

2014-03-07 Thread Adam Butcher
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.

Re: [PATCH] Fix PR c++/60393

2014-03-07 Thread Jason Merrill
On 03/07/2014 02:10 PM, Adam Butcher wrote: Ah right. I did wonder about tentative parsing. What about in cp_parser_skip_to_end_of_statement? That sounds OK. Jason

Re: [PATCH] Fix PR c++/60393

2014-03-07 Thread Adam Butcher
On 2014-03-07 17:29, Jason Merrill wrote: On 03/04/2014 04:46 PM, Adam Butcher wrote: PR c++/60393 * parser.c (cp_parser_parameter_declaration_clause): Move generic function template unwinding on error into a move general location, ... (cp_parser_error): ... here. Hm

Re: [PATCH] Fix PR c++/60393

2014-03-07 Thread Jason Merrill
On 03/04/2014 04:46 PM, Adam Butcher wrote: PR c++/60393 * parser.c (cp_parser_parameter_declaration_clause): Move generic function template unwinding on error into a move general location, ... (cp_parser_error): ... here. Hmm, I'm uncomfortable with this change;

[PATCH] Fix PR c++/60393

2014-03-04 Thread Adam Butcher
PR c++/60393 * parser.c (cp_parser_parameter_declaration_clause): Move generic function template unwinding on error into a move general location, ... (cp_parser_error): ... here. PR c++/60393 * g++.dg/cpp1y/pr60393.C: New testcase. --- gcc/cp/parser