https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103115

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code,
                   |                            |wrong-code
             Status|UNCONFIRMED                 |NEW
            Summary|reallocation of character   |[12 Regression]
                   |array fails when appending  |reallocation of character
                   |a constant size 4 array     |array fails when appending
                   |                            |a constant size 4 array
     Ever confirmed|0                           |1
   Target Milestone|---                         |12.0
   Last reconfirmed|                            |2021-11-15
                 CC|                            |tkoenig at gcc dot gnu.org

--- Comment #2 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
I can confirm the bug with gcc 9 (didn't check any other
version).

Current trunk gives me

.f90:10:13:

   10 |             ]
      |             1
interner Compiler-Fehler: tree check: expected integer_cst, have save_expr in
gfc_trans_array_constructor_value, at fortran/trans-array.c:2187
0x1002ebcf tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        ../../trunk/gcc/tree.c:8689
0x101d89bf tree_int_cst_elt_check(tree_node*, int, char const*, int, char
const*)
        ../../trunk/gcc/tree.h:3633
0x101d89bf tree_int_cst_elt_check(tree_node*, int, char const*, int, char
const*)
        ../../trunk/gcc/tree.h:3629
0x101d89bf gfc_trans_array_constructor_value
        ../../trunk/gcc/fortran/trans-array.c:2187
0x101d9563 trans_array_constructor
        ../../trunk/gcc/fortran/trans-array.c:2900
0x101d9563 gfc_add_loop_ss_code
        ../../trunk/gcc/fortran/trans-array.c:3180
0x101d9f6f gfc_conv_loop_setup(gfc_loopinfo*, locus*)
        ../../trunk/gcc/fortran/trans-array.c:5430
0x102350db gfc_trans_assignment_1
        ../../trunk/gcc/fortran/trans-expr.c:11642
0x101ba337 trans_code
        ../../trunk/gcc/fortran/trans.c:1916

Marking as regression for the ICE at least.

Reply via email to