This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54020] [c++0x] incorrectly accepted constexpr functions
- 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: Wed, 25 Jul 2012 14:57:01 +0000
- Subject: [Bug c++/54020] [c++0x] incorrectly accepted constexpr functions
- Auto-submitted: auto-generated
- References: <bug-54020-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54020
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-25 14:57:01 UTC ---
Author: jason
Date: Wed Jul 25 14:56:57 2012
New Revision: 189851
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189851
Log:
PR c++/54020
* semantics.c (potential_constant_expression_1) [COND_EXPR]: Call
maybe_constant_value.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-neg2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c