]> gcc.gnu.org Git - gcc.git/commit - gcc/cp/semantics.c
re PR c++/47504 ([C++0x] some constexpr calculations erroneously overflow when using...
authorJason Merrill <jason@redhat.com>
Thu, 17 Mar 2011 22:00:47 +0000 (18:00 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 17 Mar 2011 22:00:47 +0000 (18:00 -0400)
commitc598e5fa54f472696d5d50e2ba4991a3cec62dd1
tree01325d328412e2fe507949df5ebe3ca0566672e2
parent8b29c87a61bf1ea9aa4691dd3c07ef79119d790a
re PR c++/47504 ([C++0x] some constexpr calculations erroneously overflow when using negative numbers)

PR c++/47504
* semantics.c (cxx_eval_constant_expression) [NOP_EXPR]: Don't let
the conversion set TREE_OVERFLOW.

From-SVN: r171116
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-data2.C
gcc/testsuite/g++.dg/cpp0x/constexpr-overflow2.C [new file with mode: 0644]
This page took 0.05381 seconds and 5 git commands to generate.