(C++) Crash while printing a warning
Mark Mitchell
mark@codesourcery.com
Wed May 24 10:22:00 GMT 2000
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");
}
More information about the Gcc-bugs
mailing list