diff options
| -rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/cp/init.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index e6e1381..7d32a11 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2000-05-24 Mark Mitchell <mark@codesourcery.com> + + * init.c (sort_member_init): Fix typo in error message generation + code. + 2000-05-24 Nathan Sidwell <nathan@codesourcery.com> Update new-abi upcast algorithm. diff --git a/gcc/cp/init.c b/gcc/cp/init.c index aece8ed..df5023b 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -365,7 +365,8 @@ sort_member_init (t) /* Give a warning, if appropriate. */ if (warn_reorder && !f) { - cp_warning_at ("member initializers for `%#D'", last_field); + cp_warning_at ("member initializers for `%#D'", + TREE_PURPOSE (last_field)); cp_warning_at (" and `%#D'", initialized_field); warning (" will be re-ordered to match declaration order"); } |
