re PR c++/79639 (ICE with -O and constexpr)
authorJakub Jelinek <jakub@redhat.com>
Tue, 21 Feb 2017 17:48:57 +0000 (18:48 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 21 Feb 2017 17:48:57 +0000 (18:48 +0100)
commit664beaf2c19148677cc26c0fd6beaf2e56d2b6f3
tree6743da82496b663c0f92397eeada8e809092e6e7
parent956d3e61a029d40846994b99b7b2b12986ccb047
re PR c++/79639 (ICE with -O and constexpr)

PR c++/79639
* constexpr.c (cxx_eval_store_expression): If *valp is a PTRMEM_CST,
call cplus_expand_constant on it first.

* g++.dg/cpp1y/constexpr-79639.C: New test.

From-SVN: r245635
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/constexpr-79639.C [new file with mode: 0644]