PR c++/11510
* call.c (op_error): Properly handle REALPART_EXPR
and IMAGPART_EXPR.
* error.c (dump_expr): Likewise.
From-SVN: r69340
+2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+ PR c++/11510
+ * call.c (op_error): Properly format REALPART_EXPR and
+ IMAGPART_EXPR.
+ * error.c (dump_expr): Likewise.
+
2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
* error.c (dump_expr): Handle EMPTY_CLASS_EXPR.
case ARRAY_REF:
error ("%s for 'operator[]' in '%E[%E]'", problem, arg1, arg2);
break;
+
+ case REALPART_EXPR:
+ case IMAGPART_EXPR:
+ error ("%s for '%s' in '%s %E'", problem, opname, opname, arg1);
+ break;
default:
if (arg2)
print_right_paren (scratch_buffer);
break;
+ case REALPART_EXPR:
+ case IMAGPART_EXPR:
+ print_identifier (scratch_buffer,
+ operator_name_info[TREE_CODE (t)].name);
+ output_add_space (scratch_buffer);
+ dump_expr (TREE_OPERAND (t, 0), flags);
+ break;
+
case DEFAULT_ARG:
print_identifier (scratch_buffer, "<unparsed>");
break;