[Bug c++/95241] [10/11 Regression] internal compiler error: tree check: expected integer_cst, have range_expr in to_wide, at tree.h:5900
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95241 --- Comment #2 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:e069285cdf457cc85070e522380c4e25b0d2ed25 commit r11-722-ge069285cdf457cc85070e522380c4e25b0d2ed25 Author: Patrick Palka Date: Fri May 29 09:44:09 2020 -0400 c++: constexpr ctor with RANGE_EXPR index [PR95241] In the testcase below, the CONSTRUCTOR for 'field' contains a RANGE_EXPR index: {{aggr_init_expr<...>, [1...2]={.off=1}}} but get_or_insert_ctor_field isn't prepared to handle looking up a RANGE_EXPR index. This patch adds limited support to get_or_insert_ctor_field for looking up a RANGE_EXPR index. The limited scope of this patch should make it more suitable for backporting, and more extensive support would be needed only to handle self-modifying CONSTRUCTORs that contain a RANGE_EXPR index, but I haven't yet been able to come up with a testcase that actually creates such a CONSTRUCTOR. gcc/cp/ChangeLog: PR c++/95241 * constexpr.c (get_or_insert_ctor_field): Add limited support for RANGE_EXPR index lookups. gcc/testsuite/ChangeLog: PR c++/95241 * g++.dg/cpp0x/constexpr-array25.C: New test.
[Bug c++/95241] [10/11 Regression] internal compiler error: tree check: expected integer_cst, have range_expr in to_wide, at tree.h:5900
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95241 Richard Biener changed: What|Removed |Added Priority|P3 |P2
[Bug c++/95241] [10/11 Regression] internal compiler error: tree check: expected integer_cst, have range_expr in to_wide, at tree.h:5900
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95241 Patrick Palka changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org
[Bug c++/95241] [10/11 Regression] internal compiler error: tree check: expected integer_cst, have range_expr in to_wide, at tree.h:5900
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95241 Marek Polacek changed: What|Removed |Added Ever confirmed|0 |1 Target Milestone|--- |10.2 Summary|internal compiler error:|[10/11 Regression] internal |tree check: expected|compiler error: tree check: |integer_cst, have |expected integer_cst, have |range_expr in to_wide, at |range_expr in to_wide, at |tree.h:5900 |tree.h:5900 Status|UNCONFIRMED |NEW Last reconfirmed||2020-05-20 CC||mpolacek at gcc dot gnu.org, ||ppalka at gcc dot gnu.org Keywords||ice-on-valid-code --- Comment #1 from Marek Polacek --- Confirmed, started with r10-7556-g37244b217a7329792f4ec48027f63cf5010b0ea8