https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105020
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- There might be a dup of this bug but basically the issue is the c++ does lexing up front and the pragma is handled in frontend after lexing.