diff options
author | Gabriel Dos Reis <gdr@codesourcery.com> | 2000-10-26 05:50:19 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2000-10-26 05:50:19 +0000 |
commit | 5f9cd837907a3c3cc5158b688e68f37227974a8d (patch) | |
tree | a52dc669e9dbf901865d705405aa0244b6453576 /gcc/cp/error.c | |
parent | 59c341cbd597446ab650612f6ad5f1c956b73bf2 (diff) | |
download | gcc-5f9cd837907a3c3cc5158b688e68f37227974a8d.zip gcc-5f9cd837907a3c3cc5158b688e68f37227974a8d.tar.gz gcc-5f9cd837907a3c3cc5158b688e68f37227974a8d.tar.bz2 |
error.c (dump_function_decl): Print no space between `ptr-operator' the `type-specifier' of the return type.
cp/
* error.c (dump_function_decl): Print no space between
`ptr-operator' the `type-specifier' of the return type.
(dump_type_prefix): Make sure we put space at the appropriate
place.
testuite/g++.old-deja/g++.pt/
* g++.old-deja/g++.pt/memtemp77.C (main): Adjust comparaison
operands.
From-SVN: r37067
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r-- | gcc/cp/error.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c index e5cbe37..91c9f6e 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -717,13 +717,14 @@ dump_type_prefix (t, flags) so let the OFFSET_TYPE case handle it. */ if (!TYPE_PTRMEM_P (t)) { - if (padding != none) - output_add_space (scratch_buffer); if (TREE_CODE (sub) == ARRAY_TYPE) - print_left_paren (scratch_buffer); + { + output_add_space (scratch_buffer); + print_left_paren (scratch_buffer); + } output_add_character (scratch_buffer, "&*"[TREE_CODE (t) == POINTER_TYPE]); - padding = dump_qualifiers (t, none); + padding = dump_qualifiers (t, before); } } break; @@ -1268,8 +1269,8 @@ dump_function_decl (t, flags) && !DECL_DESTRUCTOR_P (t); if (show_return) { - if (dump_type_prefix (TREE_TYPE (fntype), flags) != none) - output_add_space (scratch_buffer); + dump_type_prefix (TREE_TYPE (fntype), flags); + output_add_space (scratch_buffer); } /* Print the function name. */ |