PATCH: err-msg8.C

Mark Mitchell mark@codesourcery.com
Sat Nov 11 16:01:00 GMT 2000


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.*


More information about the Gcc-patches mailing list