diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index e6e13818ea9..7d32a11ffb2 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2000-05-24 Mark Mitchell + + * init.c (sort_member_init): Fix typo in error message generation + code. + 2000-05-24 Nathan Sidwell Update new-abi upcast algorithm. diff --git a/gcc/cp/init.c b/gcc/cp/init.c index aece8ed4da3..df5023b2374 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"); }