This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

preprocessor/8270: back-slash newline extension can't be removed


>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:


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