diff options
author | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2003-06-21 16:43:44 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2003-06-21 16:43:44 +0000 |
commit | 84cc377e7fada373402dc72c1bc2c7fea4b544f2 (patch) | |
tree | 37bfdaf1915c698cc79442e25bc63b63a33fe702 /gcc/cp | |
parent | 058de654c50a7a0bcea4a6447d163b9d8d2d3cb0 (diff) | |
download | gcc-84cc377e7fada373402dc72c1bc2c7fea4b544f2.zip gcc-84cc377e7fada373402dc72c1bc2c7fea4b544f2.tar.gz gcc-84cc377e7fada373402dc72c1bc2c7fea4b544f2.tar.bz2 |
PC c++/10864
PC c++/10864
* call.c (op_error): Tidy.
* error.c (dump_expr): Properly format 'T()' when T is an
aggregate type.
From-SVN: r68309
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/cp/call.c | 20 |
2 files changed, 19 insertions, 8 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 7f0c4ed..0e679c9 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,10 @@ +2003-06-21 Gabriel Dos Reis <gdr@integrable-solutions.net> + + PC c++/10864 + * call.c (op_error): Tidy. + * error.c (dump_expr): Properly format 'T()' when T is an + aggregate type. + 2003-06-21 Gabriel Dos Reis <gdr@integrable-solutions.net> PR c++/10915 diff --git a/gcc/cp/call.c b/gcc/cp/call.c index 9bc55be..48e3642 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -3130,23 +3130,27 @@ op_error (enum tree_code code, enum tree_code code2, switch (code) { case COND_EXPR: - error ("%s for `%T ? %T : %T' operator", problem, - error_type (arg1), error_type (arg2), error_type (arg3)); + error ("%s for ternary 'operator?:' in '%E ? %E : %E'", + problem, arg1, arg2, arg3); break; + case POSTINCREMENT_EXPR: case POSTDECREMENT_EXPR: - error ("%s for `%T %s' operator", problem, error_type (arg1), opname); + error ("%s for 'operator%s' in '%E%s'", problem, opname, arg1, opname); break; + case ARRAY_REF: - error ("%s for `%T [%T]' operator", problem, - error_type (arg1), error_type (arg2)); + error ("%s for 'operator[]' in '%E[%E]'", problem, arg1, arg2); break; + default: if (arg2) - error ("%s for `%T %s %T' operator", problem, - error_type (arg1), opname, error_type (arg2)); + error ("%s for 'operator%s' in '%E %s %E'", + problem, opname, arg1, opname, arg2); else - error ("%s for `%s %T' operator", problem, opname, error_type (arg1)); + error ("%s for 'operator%s' in '%s%E'", + problem, opname, opname, arg1); + break; } } |