Re: [C++ PATCH] Fix diagnostics ICE (PR c++/71835)

2016-07-18 Thread Jason Merrill
OK. On Mon, Jul 11, 2016 at 4:15 PM, Jakub Jelinek wrote: > Hi! > > add_conv_candidate creates cand->fn which is not a FUNCTION_DECL, but > some type, all spots in convert_like_real assume that if fn is non-NULL, it > is some decl. Just a couple of lines above this hunk we

[C++ PATCH] Fix diagnostics ICE (PR c++/71835)

2016-07-11 Thread Jakub Jelinek
Hi! add_conv_candidate creates cand->fn which is not a FUNCTION_DECL, but some type, all spots in convert_like_real assume that if fn is non-NULL, it is some decl. Just a couple of lines above this hunk we even have a comment reminding us on cand->fn not having to be a decl: /* Since