Re: [C++] Fix decomp ICE with invalid initializer (PR c++/81258)

2017-07-03 Thread Nathan Sidwell
On 07/03/2017 12:05 PM, Jakub Jelinek wrote: Ok. In the light of the http://gcc.gnu.org/ml/gcc-patches/2017-06/msg02432.html thread, shouldn't this be structured binding declaration then? I.e. Yes, I think that's better, thanks! nathan -- Nathan Sidwell

Re: [C++] Fix decomp ICE with invalid initializer (PR c++/81258)

2017-07-03 Thread Jakub Jelinek
On Fri, Jun 30, 2017 at 01:38:13PM -0400, Nathan Sidwell wrote: > On 06/30/2017 01:24 PM, Jakub Jelinek wrote: > > > The initializer for structured binding has to be one of: > > = assignment-expression > > ( assignment-expression ) > > { assignment-expression } > > but cp_parser_initializer can pa

Re: [C++] Fix decomp ICE with invalid initializer (PR c++/81258)

2017-06-30 Thread Nathan Sidwell
On 06/30/2017 01:24 PM, Jakub Jelinek wrote: The initializer for structured binding has to be one of: = assignment-expression ( assignment-expression ) { assignment-expression } but cp_parser_initializer can parse other forms, with fewer or more expressions in there. Some cases we caught with v

[C++] Fix decomp ICE with invalid initializer (PR c++/81258)

2017-06-30 Thread Jakub Jelinek
Hi! The initializer for structured binding has to be one of: = assignment-expression ( assignment-expression ) { assignment-expression } but cp_parser_initializer can parse other forms, with fewer or more expressions in there. Some cases we caught with various cryptic errors or pedwarns, but othe