Re: [C++ PATCH] Fix error recovery (PR c++/71450)

2016-11-23 Thread Jason Merrill
On Wed, Nov 23, 2016 at 9:56 AM, Jakub Jelinek wrote: > Is there a reason why we don't return error_mark_node no matter what > complain contains? In some cases, outside of SFINAE context we can give an error and then continue to do something reasonable. > At least on the testcase if we don't ret

[C++ PATCH] Fix error recovery (PR c++/71450)

2016-11-23 Thread Jakub Jelinek
Hi! Is there a reason why we don't return error_mark_node no matter what complain contains? At least on the testcase if we don't return error_mark_node for the uses of var before deduction of auto, then we ICE later on in some assertion that expects sane types on the variables. On the other testc