diff options
author | Mark Mitchell <mark@codesourcery.com> | 2000-05-24 17:15:03 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-05-24 17:15:03 +0000 |
commit | 3c7673a5970950c685a3d962a4157cf519d931a6 (patch) | |
tree | 31a87ed493bedfe3c1ede72e4342f9b978be14eb /gcc/cp | |
parent | 8b9395c37552bf11277fb6dc4a5bd38ce6ba479b (diff) | |
download | gcc-3c7673a5970950c685a3d962a4157cf519d931a6.zip gcc-3c7673a5970950c685a3d962a4157cf519d931a6.tar.gz gcc-3c7673a5970950c685a3d962a4157cf519d931a6.tar.bz2 |
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
Diffstat (limited to 'gcc/cp')
-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"); } |