This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
preprocessor/10614: -Wtrigraphs does not catch // ??/
- From: Hallvard B Furuseth <h dot b dot furuseth at usit dot uio dot no>
- To: gcc-gnats at gcc dot gnu dot org
- Date: Sun, 4 May 2003 01:35:04 +0200
- Subject: preprocessor/10614: -Wtrigraphs does not catch // ??/
>Number: 10614
>Category: preprocessor
>Synopsis: -Wtrigraphs does not catch // ??/
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat May 03 23:36:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Hallvard B Furuseth
>Release: 3.2.3
>Organization:
University of Oslo
>Environment:
System: SunOS bombur.uio.no 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-5_10
Architecture: sun4
host: sparc-sun-solaris2.8
build: sparc-sun-solaris2.8
target: sparc-sun-solaris2.8
configured with: ../gcc-3.2.3/configure --enable-languages=c,c++,f77 --disable-shared --disable-multilib --prefix=/usit/bombur/hbf --enable-version-specific-runtime-libs --enable-threads
>Description:
-Wtrigraphs should warn about `//' comment lines that end with
`??/', since -trigraphs changes whether or not the next line is
taken to be part of the comment.
Also, when that is fixed, the the description of -Wtrigraphs
should mention this exception to the statement that trigraphs in
comments are not warned about.
>How-To-Repeat:
bash$ cat a.c
#include <stdio.h>
int main()
{
// multi-line comment ??/
puts("oops");
return 0;
}
bash$ gcc -trigraphs -Wtrigraphs a.c
bash$ ./a.out
bash$
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: