This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47570] "one() >= 0" isn't constexpr for unsigned int, yet == and > is.
- 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: Tue, 29 Mar 2011 14:24:25 +0000
- Subject: [Bug c++/47570] "one() >= 0" isn't constexpr for unsigned int, yet == and > is.
- Auto-submitted: auto-generated
- References: <bug-47570-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47570
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-29 14:24:15 UTC ---
Author: jason
Date: Tue Mar 29 14:24:09 2011
New Revision: 171663
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171663
Log:
PR c++/47570
* semantics.c (cxx_eval_constant_expression) [COMPOUND_EXPR]: Don't
use the generic binary expression handling.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-47570.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/semantics.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog