This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: err-msg8.C
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH: err-msg8.C
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Sat, 11 Nov 2000 16:01:03 -0800
- Organization: CodeSourcery, LLC
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.*