This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54021] [c++0x] __builtin_constant_p should be constexpr
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 19 Jul 2012 20:02:13 +0000
- Subject: [Bug c++/54021] [c++0x] __builtin_constant_p should be constexpr
- Auto-submitted: auto-generated
- References: <bug-54021-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54021
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-19 20:02:13 UTC ---
Author: jason
Date: Thu Jul 19 20:02:08 2012
New Revision: 189677
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189677
Log:
PR c++/54021
* call.c (build_cxx_call): Set optimize when folding
__builtin_constant_p in a constexpr function.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-builtin2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/testsuite/ChangeLog