This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Trigraphs expanding in comment regions?


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]