[Bug c++/91545] [10 Regression] ICE: tree check: expected field_decl, have var_decl in cxx_eval_store_expression, at cp/constexpr.c:3852
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Aug 26 14:39:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91545
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Mon Aug 26 14:39:08 2019
New Revision: 274930
URL: https://gcc.gnu.org/viewcvs?rev=274930&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/pr91545.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/constexpr.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list