aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/call.c
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@integrable-solutions.net>2003-07-14 17:45:08 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2003-07-14 17:45:08 +0000
commit19948e32a8be1a439f58c2d34a7f0b03ec03b85c (patch)
tree9e88937e0bee4564255bc4672f58497ac390c16f /gcc/cp/call.c
parentc18b00c0d3d51780b2842f3cad567feb1a9b9d9f (diff)
downloadgcc-19948e32a8be1a439f58c2d34a7f0b03ec03b85c.zip
gcc-19948e32a8be1a439f58c2d34a7f0b03ec03b85c.tar.gz
gcc-19948e32a8be1a439f58c2d34a7f0b03ec03b85c.tar.bz2
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
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r--gcc/cp/call.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index c71b3f8..bd947f7 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -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)