[Bug fortran/102315] ICE tree check: expected integer_cst, have save_expr in gfc_trans_array_constructor_value, at fortran/trans-array.c:2056

2021-09-20 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102315 --- Comment #3 from G. Steinmetz --- A reduced variant with the same ICE : $ cat z2.f90 program p character :: x = 'a' character :: y(5) y = [[trim(x), 'b', 'c', 'd', 'e']] print *, y end But z1 gives additional hints when reduc

[Bug fortran/102315] ICE tree check: expected integer_cst, have save_expr in gfc_trans_array_constructor_value, at fortran/trans-array.c:2056

2021-09-15 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102315 --- Comment #2 from anlauf at gcc dot gnu.org --- Looks familiar, and I am pretty sure there's a duplicate. Removing one set of [] makes the code compile: y = [character(8) :: 'a'//trim(x), 'b', 'c', 'd', 'e'] is obviously "fine".

[Bug fortran/102315] ICE tree check: expected integer_cst, have save_expr in gfc_trans_array_constructor_value, at fortran/trans-array.c:2056

2021-09-14 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102315 Martin Liška changed: What|Removed |Added Last reconfirmed||2021-09-14 Status|UNCONFIRME