[Bug preprocessor/24024] [3.4/4.0/4.1 Regression] gcc -E -C processes "\" incorrectly inside C comments

segher at kernel dot crashing dot org gcc-bugzilla@gcc.gnu.org
Tue Sep 27 17:07:00 GMT 2005


------- Additional Comments From segher at kernel dot crashing dot org  2005-09-27 16:19 -------
Looks like the issue is that lex.c:save_comment() doesn't look at line_note's.
An analogous issue happens with trigraphs.

Btw, the C standard _does_ require escaped newlines and trigrpahs to be
processed in comments.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24024



More information about the Gcc-bugs mailing list