diff options
| author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-24 17:15:03 +0000 |
|---|---|---|
| committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-24 17:15:03 +0000 |
| commit | 781d8448f79bb6a81d3df266dfea0428a403caab (patch) | |
| tree | 31a87ed493bedfe3c1ede72e4342f9b978be14eb | |
| parent | b7d987efd6d9e50403050e02a3f2cf2364a4594d (diff) | |
| download | ppe42-gcc-781d8448f79bb6a81d3df266dfea0428a403caab.tar.gz ppe42-gcc-781d8448f79bb6a81d3df266dfea0428a403caab.zip | |
* init.c (sort_member_init): Fix typo in error message generation
code.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34134 138bc75d-0d04-0410-961f-82ee72b054a4
| -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 e6e13818ea9..7d32a11ffb2 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 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"); } |

