diff options
author | Jason Merrill <jason@gcc.gnu.org> | 1997-08-25 17:30:44 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1997-08-25 17:30:44 -0400 |
commit | 922ddba49fb5a98be127a55a75c37dfcf5d26fc6 (patch) | |
tree | f5b7ec325c90650f48bac30e9ff594d3a174ff53 /gcc | |
parent | 484df9889535b64885a5fdf136c7637ab2a054e9 (diff) | |
download | gcc-922ddba49fb5a98be127a55a75c37dfcf5d26fc6.zip gcc-922ddba49fb5a98be127a55a75c37dfcf5d26fc6.tar.gz gcc-922ddba49fb5a98be127a55a75c37dfcf5d26fc6.tar.bz2 |
call.c (joust): Tweak message.
* call.c (joust): Tweak message.
Sat Aug 23 18:02:59 1997 Mark Mitchell <mmitchell@usa.net>
* error.c (type_as_string): Put const/volatile on template type
parameters where appropriate.
From-SVN: r14919
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/cp/call.c | 2 | ||||
-rw-r--r-- | gcc/cp/error.c | 1 |
3 files changed, 11 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 01ac302..7cd6bed 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,12 @@ +Mon Aug 25 14:30:02 1997 Jason Merrill <jason@yorick.cygnus.com> + + * call.c (joust): Tweak message. + +Sat Aug 23 18:02:59 1997 Mark Mitchell <mmitchell@usa.net> + + * error.c (type_as_string): Put const/volatile on template type + parameters where appropriate. + Sat Aug 23 17:47:22 1997 Jeffrey A Law (law@cygnus.com) * call.c (strictly_better): Make arguments unsigned ints. diff --git a/gcc/cp/call.c b/gcc/cp/call.c index c26006a..0a83885 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -5854,7 +5854,7 @@ joust (cand1, cand2) else type1 = TREE_TYPE (t2), type2 = TREE_TYPE (t1); - cp_warning ("`%T' promotes to `%T', not `%T'", + cp_warning ("passing `%T' chooses `%T' over `%T'", type, type1, type2); cp_warning (" in call to `%D'", DECL_NAME (cand1->fn)); } diff --git a/gcc/cp/error.c b/gcc/cp/error.c index cc7908c..b3d68ce 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -230,6 +230,7 @@ dump_type (t, v) break; case TEMPLATE_TYPE_PARM: + dump_readonly_or_volatile (t, after); if (TYPE_IDENTIFIER (t)) OB_PUTID (TYPE_IDENTIFIER (t)); else |