This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Trigraphs expanding in comment regions?
- To: Yuri Pudgorodsky <yur at asplinux dot ru>
- Subject: Re: Trigraphs expanding in comment regions?
- From: Neil Booth <NeilB at earthling dot net>
- Date: Wed, 10 May 2000 23:03:13 +0900
- Cc: gcc at gcc dot gnu dot org
- References: <3919689A.480F04AC@asplinux.ru>
Yuri Pudgorodsky wrote:-
> Is it correct, that gcc 2.96 (laterts snapshot) try to expand trigraphs in
> comment regions?
Yes it is correct - conceptually trigraphs are done before anything
else in the preprocessor. Thus conceptually the preprocessor doesn't
even know it's in a comment when it replaces the trigraph, and this is
the current implementation.
But the warning is annoying, and a new implementation of lexing is
about to come online. This will get rid of the warning, and in fact
won't bother trigraph-replacing within comments at all.
Neil.