+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.
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;
&& !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. */
+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.
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;