init.c (sort_member_init): Fix typo in error message generation code.

* init.c (sort_member_init): Fix typo in error message generation
	code.

From-SVN: r34134
This commit is contained in:
Mark Mitchell 2000-05-24 17:15:03 +00:00 committed by Mark Mitchell
parent 8b9395c375
commit 3c7673a597
2 changed files with 7 additions and 1 deletions

View File

@ -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.

View File

@ -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");
}