prog.cc:1:5: warning: "/*" within comment [-Wcomment]
/* /* */
prog.cc:1:0: warning: "/*" within comment [-Wcomment]
/* /* */
We have testcases that test Wcomment,
but none of them check column numbers.
Issue appears to be with rich_location::override_column, it's called by cpp_diagnostic_with_line, but it doesn't seem to be working. Am investigating.
Candidate patch posted here:
Date: Mon Feb 8 17:33:45 2016
New Revision: 233223
PR preprocessor/69664: fix rich_location::override_column
* gcc.dg/cpp/trad/comment-2.c: Add expected column number.
* gcc.dg/cpp/warn-comments.c: Likewise.
* errors.c (cpp_diagnostic_with_line): Only call
rich_location::override_column if the column is non-zero.
* line-map.c (rich_location::override_column): Update columns
within m_ranges. Add assertions to verify that doing so is
Should be fixed by r233223; marking as RESOLVED FIXED.