This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> 2012-09-09 16:48:46 UTC ---
(In reply to comment #5)
>     // This causes "error: the value of 'x' is not usable in a constant expression"
>     constexpr bool c = __builtin_constant_p(x);
> }

This is also fixed by my patch.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]