https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97740
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- N.B. the "diagnostic" keyword is for poor quality diagnostics, not ones that shouldn't happen at all. Code that shouldn't give an error at all should use "rejects-valid" instead.