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.

Reply via email to