Re: [PATCH] PR c++/69139

2016-02-08 Thread Jason Merrill
OK. Jason

Re: [PATCH] PR c++/69139

2016-02-08 Thread Adam Butcher
On 2016-02-08 19:14, Patrick Palka wrote: On Mon, 8 Feb 2016, Jason Merrill wrote: On 02/08/2016 11:43 AM, Patrick Palka wrote: BTW, last month I posted a patch for this PR that handles all kinds of specifiers as well __attribute__ specifiers. Patch is at: https://gcc.gnu.org/ml/gcc-patches/2

Re: [PATCH] PR c++/69139

2016-02-08 Thread Patrick Palka
On Mon, 8 Feb 2016, Jason Merrill wrote: On 02/08/2016 11:43 AM, Patrick Palka wrote: BTW, last month I posted a patch for this PR that handles all kinds of specifiers as well __attribute__ specifiers. Patch is at: https://gcc.gnu.org/ml/gcc-patches/2016-01/msg02004.html -- it makes the parser

Re: [PATCH] PR c++/69139

2016-02-08 Thread Jason Merrill
On 02/08/2016 11:43 AM, Patrick Palka wrote: BTW, last month I posted a patch for this PR that handles all kinds of specifiers as well __attribute__ specifiers. Patch is at: https://gcc.gnu.org/ml/gcc-patches/2016-01/msg02004.html -- it makes the parser arbitrarily look ahead (while skipping ove

Re: [PATCH] PR c++/69139

2016-02-08 Thread Patrick Palka
On Sat, Feb 6, 2016 at 5:25 PM, Adam Butcher wrote: > PR c++/69139 > * cp/parser.c (cp_parser_simple_type_specifier): Don't mistake 'auto' > in trailing return function pointer types as an implicit template > parameter. > > PR c++/69139 > * g++.dg/cp

Re: [PATCH] PR c++/69139

2016-02-08 Thread Jason Merrill
On 02/06/2016 05:25 PM, Adam Butcher wrote: + if (cp_lexer_next_token_is (parser->lexer, CPP_DEREF)) + have_trailing_return_fn_decl = true; + else if ((cp_lexer_consume_token (parser->lexer)->type + == CPP_OPEN_PAREN) +

[PATCH] PR c++/69139

2016-02-07 Thread Adam Butcher
PR c++/69139 * cp/parser.c (cp_parser_simple_type_specifier): Don't mistake 'auto' in trailing return function pointer types as an implicit template parameter. PR c++/69139 * g++.dg/cpp0x/trailing12.C: New test. --- gcc/cp/parser.c