This is the mail archive of the gcc-patches@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]

PATCH: err-msg8.C



This test started failing because the error wasn't coming at the same
line for which they appeared for Nathan.  (Again, we're suffering from
the bison-pased parser.)

I've tweaked the test so that even token-lookahead won't screw up the
line numbers.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

2000-11-11  Mark Mitchell  <mark@codesourcery.com>

	* g++.brendan/err-msg8.C: Avoid capricious line-number issues with
	error messages.

Index: g++.brendan/err-msg8.C
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/g++.old-deja/g++.brendan/err-msg8.C,v
retrieving revision 1.3
diff -c -p -r1.3 err-msg8.C
*** err-msg8.C	2000/11/09 17:09:33	1.3
--- err-msg8.C	2000/11/11 23:57:29
***************
*** 1,4 ****
  // Build don't link: 
  // GROUPS passed error-messages
! operator int ;
! // ERROR -  declaration of `operator int' as non-function.*
--- 1,3 ----
  // Build don't link: 
  // GROUPS passed error-messages
! operator int ; int j; // ERROR -  declaration of `operator int' as non-function.*

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