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 #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


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