Re: [C++ Patch / RFC] PR 29234

2013-11-01 Thread Jason Merrill
On 10/31/2013 03:07 PM, Paolo Carlini wrote: ... I understand that at this point likely this isn't 4.9 material anymore. I think it's fine for 4.9, we're still in stage 1. The revised patch is OK. Jason

Re: [C++ Patch / RFC] PR 29234

2013-10-31 Thread Paolo Carlini
... I understand that at this point likely this isn't 4.9 material anymore. Just wanted to add that in the meanwhile I noticed that my WIP patch fixes c++/56037 too, which in fact seems to me a slightly less uncommon kind of code and that I tidied a bit the comments and simplified the cp_parse

[C++ Patch / RFC] PR 29234

2013-10-30 Thread Paolo Carlini
Hi, I'm having a look at this very old parsing issue. We reject things like: struct S { void operator () (); }; void foo () { ( S()() ); } because the parenthesized S()() triggers an hard error from groktypename as called at the end of cp_parser_type_id (called by cp_parser_cast_expression