[Bug c++/47570] "one() >= 0" isn't constexpr for unsigned int, yet == and > is.
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 17 02:36:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47570
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-17 02:36:07 UTC ---
Author: jason
Date: Thu Mar 17 02:36:04 2011
New Revision: 171083
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171083
Log:
PR c++/47570
* semantics.c (cxx_eval_constant_expression) [COMPOUND_EXPR]: Don't
use the generic binary expression handling.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-47570.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list