PR c++/91545 - ICE in constexpr store evaluation.
authorMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 26 Aug 2019 14:39:08 +0000 (14:39 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 26 Aug 2019 14:39:08 +0000 (14:39 +0000)
commit7d349dd8e87c7f0bcfd1e03911035b578220c50f
tree7a7c530fd5e3ae90ee9e349a496020ba1d42d034
parentd2ea2406ccd002f8c150e6accaffd6bfdbd7444b
PR c++/91545 - ICE in constexpr store evaluation.

* constexpr.c (cxx_eval_store_expression): Check FIELD_DECL instead
of DECL_P.

* g++.dg/cpp0x/pr91545.C: New test.

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