preprocessor/8270: back-slash newline extension can't be removed
Zack Weinberg
zack@codesourcery.com
Tue Oct 22 14:26:00 GMT 2002
The following reply was made to PR preprocessor/8270; it has been noted by GNATS.
From: Zack Weinberg <zack@codesourcery.com>
To: Neil Booth <neil@daikokuya.co.uk>
Cc: eschmidt@safeaccess.com, gcc-gnats@gcc.gnu.org
Subject: Re: preprocessor/8270: back-slash newline extension can't be removed
Date: Tue, 22 Oct 2002 14:19:04 -0700
On Mon, Oct 21, 2002 at 08:57:43PM +0100, Neil Booth wrote:
> eschmidt@safeaccess.com wrote:-
>
> > >Synopsis: back-slash newline extension can't be removed
>
> [...]
>
> > 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.
>
> Zack, I favour closing this, since the behaviour can be avoided if
> deemed necessary by judicious insertion of a C comment. Agreed?
Agreed. I don't consider it necessary to cut any slack for people
whose code depends on trailing whitespace.
zw
More information about the Gcc-prs
mailing list