https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112425
Bug ID: 112425 Summary: Invalid SARIF output when column number is zero Product: gcc Version: unknown Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Target Milestone: --- We use column number == 0 to mean "the whole line". As noted in: https://gcc.gnu.org/pipermail/gcc-patches/2023-November/635446.html SARIF requires column numbers to be >= 1 We should simply omit the attribute for such cases.