re PR c++/70323 (missing error on integer overflow in constexpr function result conve...
authorJakub Jelinek <jakub@redhat.com>
Wed, 23 Mar 2016 18:45:26 +0000 (19:45 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 23 Mar 2016 18:45:26 +0000 (19:45 +0100)
commit61637db3f2f55a1b97e6f466be012a131bede75d
treed41106a9190c0d64c3e6fedaa69e2c6ef89d400e
parent048336099ee3c4e29510f140f5505ce2ad79bf55
re PR c++/70323 (missing error on integer overflow in constexpr function result converted to bool)

PR c++/70323
* constexpr.c (cxx_eval_constant_expression): Diagnose overflow
on TREE_OVERFLOW constants.

* g++.dg/cpp0x/constexpr-70323.C: New test.

From-SVN: r234438
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-70323.C [new file with mode: 0644]