https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121166
Bug ID: 121166 Summary: gfc-diagnostic.def has been out of sync with diagnostic.def since r10-5901-g4bc1899b2e883f Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Target Milestone: --- In r10-5901-g4bc1899b2e883f I added DK_DIAGNOSTIC_PATH to gcc/diagnostic.def, within the existing entries, between DK_DEBUG and DK_PEDWARN. I mistakenly didn't update gcc/fortran/gfc-diagnostic.def at the same time, which means for 5 releases they've been out of sync. Sorry about this. gfc_diagnostic_build_kind_prefix uses gfc-diagnostic.def for the text prefix and color of the diagnostic to build arrays, but uses an index into those arrays based on the diagnostic_t value in the diagnostic_info, which uses diagnostic.def. Hence if we report a DK_PEDWARN, DK_PERMERROR, DK_WERROR, or DK_ICE_NOBT from Fortran, it will presumably use the wrong heading and color.