PR c++/80294 - ICE with constexpr and inheritance.
commitce4ffd9e8e755aab72d0703f2e7f3ebee4ec9202
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Apr 2017 21:07:32 +0000 (11 21:07 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Apr 2017 21:07:32 +0000 (11 21:07 +0000)
tree737c35ff0e78500dbf67f19bb9e11d828257f0c7
parent78cecf8ee4fa046e6c0808b4c43cd4901a0e0a98
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246858 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/g++.dg/cpp1y/constexpr-empty3.C [new file with mode: 0644]