This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: (C++) Crash while printing a warning
- To: pfeifer at dbai dot tuwien dot ac dot at
- Subject: Re: (C++) Crash while printing a warning
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Wed, 24 May 2000 10:30:23 -0700
- Cc: gcc-bugs at gcc dot gnu dot org, faber at dbai dot tuwien dot ac dot at
- Organization: CodeSourcery, LLC
- References: <Pine.GSO.4.21.0005241302100.16159-100000@nunki.dbai.tuwien.ac.at>
My bad. Fixed thusly. This will presumably also fix Ulrich's
problem reported yesterday.
Thanks,
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
2000-05-24 Mark Mitchell <mark@codesourcery.com>
* init.c (sort_member_init): Fix typo in error message generation
code.
Index: init.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/init.c,v
retrieving revision 1.191
diff -c -p -r1.191 init.c
*** init.c 2000/05/24 06:15:04 1.191
--- init.c 2000/05/24 17:07:57
*************** sort_member_init (t)
*** 365,371 ****
/* Give a warning, if appropriate. */
if (warn_reorder && !f)
{
! cp_warning_at ("member initializers for `%#D'", last_field);
cp_warning_at (" and `%#D'", initialized_field);
warning (" will be re-ordered to match declaration order");
}
--- 365,372 ----
/* Give a warning, if appropriate. */
if (warn_reorder && !f)
{
! 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");
}