https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92061
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |INVALID --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Or rather it is the way __builtin_constant_p is defined in the new clang. This is a bug in clang. As it says it is GCC_VERSION >= 3001 but does not implement the same semantics as GCC for __builtin_constant_p .