preprocessor/10614: -Wtrigraphs does not catch // ??/

Hallvard B Furuseth h.b.furuseth@usit.uio.no
Sun May 4 02:16:00 GMT 2003


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



More information about the Gcc-bugs mailing list