cpplex.c (_cpp_lex_token): Don't call CPP_BUMP_LINE when the mark is active.
* cpplex.c (_cpp_lex_token): Don't call CPP_BUMP_LINE when the mark is active. From-SVN: r33228
This commit is contained in:
parent
cd89c29664
commit
cbccf5e803
@ -1,3 +1,8 @@
|
||||
2000-04-18 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
* cpplex.c (_cpp_lex_token): Don't call CPP_BUMP_LINE when the
|
||||
mark is active.
|
||||
|
||||
Tue Apr 18 14:16:47 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
|
||||
|
||||
* c-decl.c (mark_binding_level): Use 'for' instead of `while'.
|
||||
|
@ -1218,7 +1218,8 @@ _cpp_lex_token (pfile)
|
||||
else
|
||||
{
|
||||
/* Backslash newline is ignored. */
|
||||
CPP_BUMP_LINE (pfile);
|
||||
if (!ACTIVE_MARK_P (pfile))
|
||||
CPP_BUMP_LINE (pfile);
|
||||
goto get_next;
|
||||
}
|
||||
|
||||
|
7
gcc/testsuite/g++.old-deja/g++.other/lineno4.C
Normal file
7
gcc/testsuite/g++.old-deja/g++.other/lineno4.C
Normal file
@ -0,0 +1,7 @@
|
||||
// Build don't link:
|
||||
|
||||
#define x \
|
||||
y
|
||||
|
||||
int; // ERROR - invalid declaration
|
||||
|
Loading…
Reference in New Issue
Block a user