re PR c++/64356 (Some constexpr expressions not recognized as constexpr)
authorJason Merrill <jason@redhat.com>
Tue, 13 Jan 2015 21:04:43 +0000 (16:04 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 13 Jan 2015 21:04:43 +0000 (16:04 -0500)
commitcaee690e915e13a48a16dabbb61110ae88d1821a
tree9eaa74bed3b9d5c63d6e7a29849c7e6a834a3344
parent7c368fb23cc92a3406e181ae361ebce3f5b9ab22
re PR c++/64356 (Some constexpr expressions not recognized as constexpr)

PR c++/64356
PR libstdc++/58777
* constexpr.c (cxx_eval_binary_expression): Don't VERIFY_CONSTANT
pointer expressions.
(cxx_eval_increment_expression): Likewise.

From-SVN: r219559
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/g++.dg/cpp1y/constexpr-local2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/pr63996.C
libstdc++-v3/testsuite/experimental/optional/constexpr/make_optional.cc
libstdc++-v3/testsuite/experimental/optional/constexpr/observers/2.cc
libstdc++-v3/testsuite/experimental/optional/constexpr/observers/3.cc