Re: [PATCH] PR c++/65750

2015-06-26 Thread Jason Merrill
On 06/24/2015 06:55 AM, Paolo Carlini wrote: I'm finishing retesting the amended patch and, if everything goes well, I will apply it to trunk, as approved by Jason (only additional minor tweak: testcase in cpp0x instead of cpp1y). What about gcc-5-branch? It's a regression. I think this is saf

Re: [PATCH] PR c++/65750

2015-06-24 Thread Paolo Carlini
Hi, On 04/14/2015 11:34 PM, Jason Merrill wrote: On 04/14/2015 05:27 PM, Adam Butcher wrote: On 2015-04-10 15:57, Adam Butcher wrote: + cp_lexer_consume_token (parser->lexer); Actually there should be two of these as the 'auto' isn't consumed yet. OK. I'm finishing retesting the

Re: [PATCH] PR c++/65750

2015-04-14 Thread Jason Merrill
On 04/14/2015 05:27 PM, Adam Butcher wrote: On 2015-04-10 15:57, Adam Butcher wrote: + cp_lexer_consume_token (parser->lexer); Actually there should be two of these as the 'auto' isn't consumed yet. OK. Jason

Re: [PATCH] PR c++/65750

2015-04-14 Thread Adam Butcher
On 2015-04-10 15:57, Adam Butcher wrote: + cp_lexer_consume_token (parser->lexer); Actually there should be two of these as the 'auto' isn't consumed yet.

[PATCH] PR c++/65750

2015-04-14 Thread Adam Butcher
* cp/parser.c (cp_parser_simple_type_specifier): Don't synthesize implicit template parm if 'auto' is a placeholder for trailing return type. --- gcc/cp/parser.c | 23 +++ gcc/testsuite/g++.dg/cpp1y/pr65750.C | 12 2 fil