Re: [C++ PATCH] Fix structured binding initializer checking (PR c++/81888)

2017-11-27 Thread Jason Merrill
On Thu, Nov 23, 2017 at 3:35 PM, Jakub Jelinek wrote: > Hi! > > My PR81258 fix actually rejects even valid cases. > The standard says that: > "The initializer shall be of the form “= assignment-expression”, of the form > “{ assignment-expression }”, or of the form “(

[C++ PATCH] Fix structured binding initializer checking (PR c++/81888)

2017-11-23 Thread Jakub Jelinek
Hi! My PR81258 fix actually rejects even valid cases. The standard says that: "The initializer shall be of the form “= assignment-expression”, of the form “{ assignment-expression }”, or of the form “( assignment-expression )” Now, if the form is = assigment-expression, we can e.g. in templates