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
This commit is contained in:
parent
59c341cbd5
commit
5f9cd83790
|
@ -1,3 +1,10 @@
|
|||
2000-10-26 Gabriel Dos Reis <gdr@codesourcery.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2000-10-23 Jason Merrill <jason@redhat.com>
|
||||
|
||||
* call.c (equal_functions): Also call decls_match for extern "C" fns.
|
||||
|
|
|
@ -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. */
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2000-10-26 Gabriel Dos Reis <gdr@codesourcery.com>
|
||||
|
||||
* g++.old-deja/g++.pt/memtemp77.C (main): Adjust comparaison
|
||||
operands.
|
||||
|
||||
2000-10-25 Joseph S. Myers <jsm28@cam.ac.uk>
|
||||
|
||||
* gcc.dg/qual-return-1.c, gcc.dg/qual-return-2.c: New tests.
|
||||
|
|
|
@ -18,7 +18,7 @@ const char* S3<char>::h(int) { return __PRETTY_FUNCTION__; }
|
|||
int main()
|
||||
{
|
||||
if (strcmp (S3<double>::h(7),
|
||||
"const char *S3<T>::h(U) [with U = int, T = double]") == 0)
|
||||
"const char* S3<T>::h(U) [with U = int, T = double]") == 0)
|
||||
return 0;
|
||||
else
|
||||
return 1;
|
||||
|
|
Loading…
Reference in New Issue