[Bug preprocessor/27750] bogus 'backslash-newline at end of file' warning
neil at daikokuya dot co dot uk
gcc-bugzilla@gcc.gnu.org
Wed May 24 12:55:00 GMT 2006
------- Comment #8 from neil at daikokuya dot co dot uk 2006-05-24 12:55 -------
Subject: Re: New: bogus 'backslash-newline at end of file' warning
sabre at nondot dot org wrote:-
> $ gcc bug.c -Wall -pedantic -fsyntax-only -trigraphs -std=c99
>
> yields:
> bug.c:2:9: warning: trigraph ??/ converted to \
> bug.c:2:9: warning: backslash-newline at end of file
> bug.c:2:1: warning: multi-line comment
> bug.c:1: warning: ISO C forbids an empty source file
>
> A couple of issues. First, the diagnostics are not sorted. The last one
> should be issued first. Second, more importantly, the 2nd diagnostic is
> incorrect. There is no backslash-newline at the end of the file. The first
> and third diagnostics are accurate.
The empty source file diagnostic is clearly incorrect, it has text
in it 8-) However I think it's quite logical it appear last as that
it where it can be discovered.
The backslash diagnostic is clearly bogus too.
Neil.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27750
More information about the Gcc-bugs
mailing list