https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71613
--- Comment #6 from joseph at codesourcery dot com <joseph at codesourcery dot com> --- Rather than piecemeal fixes with no evidence of completeness, I think we should disable the smarts around system header macro locations determining whether diagnostics appear (i.e., the system-header tests for disabling diagnostics should all use the expansion location), until we have a proper design for avoiding such issues and have systematically reviewed all diagnostics for conforming to such a design (if the design needs each diagnostic function call to be reviewed).