https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60014
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic, easyhack Last reconfirmed|2014-06-10 00:00:00 |2016-6-23 --- Comment #7 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- (In reply to Fredrik Hallenberg from comment #6) > Reconfirmed with gcc 6.1.1 I don't think anything will change until someone volunteers to debug and propose a fix: https://gcc.gnu.org/wiki/DebuggingGCC The problem is in c-family/c-ppoutput.c It seems print.prev_was_system_token is not always correctly updated. In particular, we may call do_line_change at various places and emit a sysp linemarker in print_line_1, but then not update print.prev_was_system_token. It only makes sense to update its value within this function, so it is synchronized with the corresponding linemarkers.