This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
preprocessor/8270: back-slash newline extension can't be removed
- From: eschmidt at safeaccess dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 17 Oct 2002 22:17:51 -0000
- Subject: preprocessor/8270: back-slash newline extension can't be removed
- Reply-to: eschmidt at safeaccess dot com
>Number: 8270
>Category: preprocessor
>Synopsis: back-slash newline extension can't be removed
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Thu Oct 17 15:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: eschmidt@safeaccess.com
>Release: gcc 3.2
>Organization:
>Environment:
Configured with: /devel/gcc32/gnu/gcc-3.2/configure i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR --disable-nls
Thread model: single
>Description:
The preprocessor does not remove the extension allowing extra white space in a backslash-newline, even when GCC is invoked with -ansi
gcc -ansi bug.c -o bug
bug.c:1:13: warning: backslash and newline separated by space
bug.c:3: parse error before "return"
An executable file sohuld have been created.
>How-To-Repeat:
#define foo \
int main(void) {
return 0;
}
>Fix:
Workaround: put a comment between the backslash and the newline.
>Release-Note:
>Audit-Trail:
>Unformatted: