https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127693
--- Comment #3 from Drea Pinski <pinskia at gcc dot gnu.org> --- I think what gcc is doing for __builtin_constant_p is correct and exactly as documented too. That is it is invalid expection from the qt libraries of __builtin_constant_p to act differently
