Re: C++ PATCH for c++/91962 - ICE with reference binding and qualification conversion

2019-10-30 Thread Jason Merrill
On 10/24/19 3:24 PM, Marek Polacek wrote: When fixing c++/91889 (r276251) I was assuming that we couldn't have a ck_qual under a ck_ref_bind, and I was introducing it in the patch and so this + if (next_conversion (convs)->kind == ck_qual) + { + gcc_assert (same_type_p (TREE_TYPE (exp

C++ PATCH for c++/91962 - ICE with reference binding and qualification conversion

2019-10-24 Thread Marek Polacek
When fixing c++/91889 (r276251) I was assuming that we couldn't have a ck_qual under a ck_ref_bind, and I was introducing it in the patch and so this + if (next_conversion (convs)->kind == ck_qual) + { + gcc_assert (same_type_p (TREE_TYPE (expr), +next_conversion (co