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++/47570] "one() >= 0" isn't constexpr for unsigned int, yet == and > is.


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


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