This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: (C++) Crash while printing a warning



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");
  	}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]