]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
init.c (sort_member_init): Fix typo in error message generation code.
authorMark Mitchell <mark@codesourcery.com>
Wed, 24 May 2000 17:15:03 +0000 (17:15 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 24 May 2000 17:15:03 +0000 (17:15 +0000)
* init.c (sort_member_init): Fix typo in error message generation
code.

From-SVN: r34134

gcc/cp/ChangeLog
gcc/cp/init.c

index e6e13818ea979571848e9d813b3b2f4c75fa7f3a..7d32a11ffb2e809038f468d522ea0f0b47b3ca5c 100644 (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.
index aece8ed4da302829ffe7c897e9dafd10e71cbbc7..df5023b23741c4a80a3cbc3352f0e1ade16cddbb 100644 (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");
        }