https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96063
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Component|libstdc++ |c++ Summary|mismatched-tags warnings in |[10/11 Regression] |stdlib headers |mismatched-tags warnings in | |stdlib headers Known to fail| |10.1.0, 11.0 Target Milestone|11.0 |10.2 Resolution|FIXED |--- Known to work| |9.3.0 CC| |msebor at gcc dot gnu.org --- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> --- Gah, that's a compiler bug. Martin, the -Wmismatched-tags warning adds loads of notes which are printed unconditionally when -Wmismatched-tags is used. They need to be gated on whether the actual warning is printed, so that you don't get orphaned notes for warnings that are suppressed due to occurring in system headers. I've changed the libstdc++ headers on trunk, but not on gcc-10, so you can still reproduce it easily on that branch.