re PR c++/11510 (Error message with operator __imag__ is missing spaces)
PR c++/11510 * call.c (op_error): Properly handle REALPART_EXPR and IMAGPART_EXPR. * error.c (dump_expr): Likewise. From-SVN: r69340
This commit is contained in:
parent
c18b00c0d3
commit
19948e32a8
@ -1,3 +1,10 @@
|
||||
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.
|
||||
|
@ -3010,6 +3010,11 @@ op_error (enum tree_code code, enum tree_code code2,
|
||||
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)
|
||||
|
@ -1982,6 +1982,14 @@ dump_expr (tree t, int flags)
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user