re PR c++/54021 ([c++0x] __builtin_constant_p should be constexpr)
authorJason Merrill <jason@redhat.com>
Thu, 19 Jul 2012 20:02:08 +0000 (16:02 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 19 Jul 2012 20:02:08 +0000 (16:02 -0400)
commita73b8b59fb0c47fdf8a31f812867ec56744ec6a4
tree3930abc2d16c552b405d6e4d116fc01675144f2c
parente1310984b5ea59b3478b7a37d008d1f16c1effde
re PR c++/54021 ([c++0x] __builtin_constant_p should be constexpr)

PR c++/54021
* call.c (build_cxx_call): Set optimize when folding
__builtin_constant_p in a constexpr function.

From-SVN: r189677
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-builtin2.C [new file with mode: 0644]