Re: [C++ PATCH] Fix structured binding tsubst error recovery (PR c++/85210)

2018-04-06 Thread Jason Merrill
OK. On Fri, Apr 6, 2018 at 11:44 AM, Jakub Jelinek wrote: > Hi! > > During parsing we report error here, the decomp id shadowing parameter, > but we still have a VAR_DECL for the decomp id, only during > tsubst_decomp_names tsubst returns a PARM_DECL for it. > > I believe and (the code asserts th

[C++ PATCH] Fix structured binding tsubst error recovery (PR c++/85210)

2018-04-06 Thread Jakub Jelinek
Hi! During parsing we report error here, the decomp id shadowing parameter, but we still have a VAR_DECL for the decomp id, only during tsubst_decomp_names tsubst returns a PARM_DECL for it. I believe and (the code asserts that) this can only happen during error recovery and we just should punt o