Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!OPUS.CS.WASHINGTON.EDU!pardo From: pardo@OPUS.CS.WASHINGTON.EDU (Divid Kezzel) Newsgroups: gnu.gcc.bug Subject: Trigraph warning: in a comment, wrong file name Message-ID: <8907240654.AA10793@opus.cs.washington.edu> Date: 24 Jul 89 06:54:19 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 28 GCC: 1.34, compiled for an i386 Sequent using std. config files. MACHINE: i386 Sequent. PROBLEM: GNU CC (gcc) issues a trigraph warning for a character sequence that is inside a comment. The warning is issued for the wrong line number of the wrong file name. The `info' documentation for command-line flags "-W" and "-Wall" does not say that any warnings will ever be issued for trigraphs. REPEAT-BY: "gcc -Wall -c foo.c" foo.c: /* Line #1 of `foo.c' */ #include "foo.h" /* Line #2 of `foo.c' */ foo.h: /* This is a trigraph (??) */ /* Line #1 of `foo.h' */ gcc -Wall -c foo.c foo.c:2: warning: file contains 1 trigraph(s) (Note that the warning is issued for the source line with the `#include' directive rather than the source line with the `??)' sequence. Further, since `??)' doesn't expand to a star or a slash, it is questionable whether it is worth complaining about inside of a comment.) ;-D on ( Free bugs for all bug-free code ) Pardo pardo@cs.washington.edu