Re: [C++ PATCH] Fix incomplete type error recovery (PR c++/71516)

2016-06-14 Thread Jason Merrill
On Mon, Jun 13, 2016 at 2:44 PM, Jakub Jelinek wrote: > Ok for trunk? Would this be reasonable to backport too (I mean, it > shouldn't break anything and accessing TYPE_MAIN_VARIANT (error_mark_node) > can crash miserably)? Yes. Jason

[C++ PATCH] Fix incomplete type error recovery (PR c++/71516)

2016-06-13 Thread Jakub Jelinek
Hi! On the following testcase we ICE during error recovery, because a is first added to the incomplete vars vector, but then is attempted to be initialized, which results in error and setting its type to error_mark_node (as the type has been incomplete). When we try to complete vars, we ICE