[gnu.gcc.bug] Trigraph warning: in a comment, wrong file name

pardo@OPUS.CS.WASHINGTON.EDU (Divid Kezzel) (07/24/89)

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