[Bug c++/70552] __builtin_constant_p fails to reflect the constness of constexpr calls
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Apr 5 17:42:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70552
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Blocks| |55004
Known to fail| |4.9.3, 5.3.0, 6.0
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
The test case aborts at runtime with all versions that support constexpr,
though with 5.1 and prior it also fails the second static_assert (i.e., the one
involving __builtin_constant_p), and optimization has no effect on it.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004
[Bug 55004] [meta-bug] constexpr issues
More information about the Gcc-bugs
mailing list