call.c (build_new_method_call): Use '%#V'.
authorNathan Sidwell <nathan@codesourcery.com>
Tue, 18 Dec 2001 11:51:05 +0000 (11:51 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 18 Dec 2001 11:51:05 +0000 (11:51 +0000)
* call.c (build_new_method_call): Use '%#V'.
* error.c (cv_to_string): Use V parameter to determine padding.

From-SVN: r48150

gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/error.c

index 618af5dd3ded8d67157bece0e42902fe8f534c7b..db56ae1c79c05fabbdd206525be706d08636aacf 100644 (file)
@@ -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"
index b456746d79655cc07a3f2f82d3f1e97a39979af6..d8129a754d8ac9b0417f1570fb6313d9bd61ef22 100644 (file)
@@ -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;
     }
index d1134709d76e4ac8ec978d43c393985fab80281a..61d83033e6ef54498d434abb64a18608bd36b787 100644 (file)
@@ -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);
 }