PR c++/80294 - ICE with constexpr and inheritance.
authorJason Merrill <jason@redhat.com>
Tue, 11 Apr 2017 21:07:32 +0000 (17:07 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 11 Apr 2017 21:07:32 +0000 (17:07 -0400)
commit125db6a1c6aca542c14b326facdcaf9a1fca8b52
tree737c35ff0e78500dbf67f19bb9e11d828257f0c7
parent347e1f77696d8d69db2c9e66bba6e48662de8343
PR c++/80294 - ICE with constexpr and inheritance.

* constexpr.c (reduced_constant_expression_p):
A null constructor element is non-constant.
(cxx_eval_indirect_ref): Don't VERIFY_CONSTANT before
returning an empty base.

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