You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have two desires for interaction of __builtin_constant_p with
constexpr: 1) it should be a constant-expression even if its operands
are not, and 2) we shouldn't fold it to false prematurely when parsing a
constexpr function (c++/54021). We were having trouble with both of
these, and this patch fixes#1 without breaking gcc-mirror#2.
gcc/cp/
Backport from mainline
2015-04-28 Jason Merrill <[email protected]>
PR c++/65656
* constexpr.c (cxx_eval_builtin_function_call): Fix
__builtin_constant_p.
gcc/testsuite/
Backport from mainline
2015-04-28 Jason Merrill <[email protected]>
PR c++/65656
* g++.dg/cpp0x/constexpr-builtin3.C: New test.
0 commit comments