Re: [C++ PATCH] Fix error recovery in tsubst_baselink (PR c++/71826)

2016-07-18 Thread Jason Merrill
OK. On Mon, Jul 11, 2016 at 3:34 PM, Jakub Jelinek wrote: > Hi! > > Most of the spots in tsubst_baselink that actually access baselink after > it has been assigned lookup_fnfields () test that it is a BASELINK_P, except > one - the BASELINK_OPTYPE update. lookup_fnfields can

[C++ PATCH] Fix error recovery in tsubst_baselink (PR c++/71826)

2016-07-11 Thread Jakub Jelinek
Hi! Most of the spots in tsubst_baselink that actually access baselink after it has been assigned lookup_fnfields () test that it is a BASELINK_P, except one - the BASELINK_OPTYPE update. lookup_fnfields can return error_mark_node though, perhaps something else too. The patch just follows what