This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
@@ -5413,7 +5413,7 @@ build_op_delete_call (enum tree_code code, tree ad fns = lookup_name_nonclass (fnname);
/* Strip const and volatile from addr. */ - addr = cp_convert (ptr_type_node, addr); + addr = cp_convert (ptr_type_node, addr, tf_warning_or_error);
+ if (complain & tf_error) + { + if (flags & LOOKUP_COMPLAIN) + permerror (loc, "conversion from %q#T to %q#T", + intype, type); + if (!flag_permissive) + return error_mark_node; + } + else return error_mark_node;
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |