[Bug c++/91877] [10 Regression] ICE in convert_like_real, at cp/call.c:7385 since r276058
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Sep 24 13:12:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91877
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Candidate fix:
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -7382,8 +7382,7 @@ convert_like_real (conversion *convs, tree expr, tree fn,
int argnum,
tree type = TREE_TYPE (ref_type);
cp_lvalue_kind lvalue = lvalue_kind (expr);
- gcc_assert (same_type_ignoring_top_level_qualifiers_p
- (type, next_conversion (convs)->type));
+ gcc_assert (similar_type_p (type, next_conversion (convs)->type));
if (!CP_TYPE_CONST_NON_VOLATILE_P (type)
&& !TYPE_REF_IS_RVALUE (ref_type))
{
More information about the Gcc-bugs
mailing list