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++/47504] some constexpr calculations erroneously overflow when using negative numbers


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47504

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-17 22:00:51 UTC ---
Author: jason
Date: Thu Mar 17 22:00:47 2011
New Revision: 171116

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171116
Log:
    PR c++/47504
    * semantics.c (cxx_eval_constant_expression) [NOP_EXPR]: Don't let
    the conversion set TREE_OVERFLOW.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-overflow2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-data2.C


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