https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104990
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >This showed up with -fgnuc-version=11.2 Well then this is a bug in clang for allowing this really. libstdc++ uses extensions based on the GNUC++ version and you specify that it was the wrong version of GCC.