[Bug c++/54021] [c++0x] __builtin_constant_p should be constexpr

luto at mit dot edu gcc-bugzilla@gcc.gnu.org
Sat Sep 8 22:29:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54021

--- Comment #6 from Andy Lutomirski <luto at mit dot edu> 2012-09-08 22:29:17 UTC ---
I think that's correct.  x isn't a standards-mandated constant expression, so
__builtin_constant_p depends on optimization level and probably shouldn't be
allowed as a constexpr.



More information about the Gcc-bugs mailing list