diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2001-12-18 11:51:05 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2001-12-18 11:51:05 +0000 |
commit | ea50ad828ceb9027061c957d442f4eff7b6cf91b (patch) | |
tree | c47fd1c7b0d0ef8dd813a5c84f4c03e476a9796c /gcc/cp | |
parent | b25c3a22e3681b018f86030183356ce17798e450 (diff) | |
download | gcc-ea50ad828ceb9027061c957d442f4eff7b6cf91b.tar.gz |
call.c (build_new_method_call): Use '%#V'.
* call.c (build_new_method_call): Use '%#V'.
* error.c (cv_to_string): Use V parameter to determine padding.
From-SVN: r48150
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/call.c | 6 | ||||
-rw-r--r-- | gcc/cp/error.c | 4 |
3 files changed, 10 insertions, 5 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 618af5dd3de..db56ae1c79c 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2001-12-18 Nathan Sidwell <nathan@codesourcery.com> + + * call.c (build_new_method_call): Use '%#V'. + * error.c (cv_to_string): Use V parameter to determine padding. + 2001-12-18 Joseph S. Myers <jsm28@cam.ac.uk> * call.c, decl2.c, init.c: Use "built-in" and "bit-field" diff --git a/gcc/cp/call.c b/gcc/cp/call.c index b456746d796..d8129a754d8 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -4625,9 +4625,9 @@ build_new_method_call (instance, name, args, basetype_path, flags) if (!COMPLETE_TYPE_P (basetype)) incomplete_type_error (instance_ptr, basetype); else - error ("no matching function for call to `%T::%D(%A)%V'", - basetype, pretty_name, user_args, - TREE_TYPE (TREE_TYPE (instance_ptr))); + error ("no matching function for call to `%T::%D(%A)%#V'", + basetype, pretty_name, user_args, + TREE_TYPE (TREE_TYPE (instance_ptr))); print_z_candidates (candidates); return error_mark_node; } diff --git a/gcc/cp/error.c b/gcc/cp/error.c index d1134709d76..61d83033e6e 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -2388,11 +2388,11 @@ args_to_string (p, verbose) static const char * cv_to_string (p, v) tree p; - int v ATTRIBUTE_UNUSED; + int v; { reinit_global_formatting_buffer (); - dump_qualifiers (p, before); + dump_qualifiers (p, v ? before : none); return output_finalize_message (scratch_buffer); } |