Re: [C++ PATCH] Fix ICE in joust with -Wconversion (PR c++/81167)

2018-01-19 Thread Jason Merrill
On Thu, Jan 18, 2018 at 6:35 PM, Jakub Jelinek wrote: > Hi! > > As mentioned in the PR, we ICE on this testcase because > w->fn is a conversion operator, w->convs[0]->type is a reference > to a class type, but because that conversion is ck_ref_bind, > source_type looks through

[C++ PATCH] Fix ICE in joust with -Wconversion (PR c++/81167)

2018-01-18 Thread Jakub Jelinek
Hi! As mentioned in the PR, we ICE on this testcase because w->fn is a conversion operator, w->convs[0]->type is a reference to a class type, but because that conversion is ck_ref_bind, source_type looks through it and finds ck_identity with the class type. Then we because w->fn is not a