https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118813
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #18 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Fixed. and tested `-Wsystem-headers -Wundef -std=c23` with a simple: #include <immintrin.h> There is some libstdc++ issues with `-Wsystem-headers -Wundef` but the issue here is fixed.