[Bug fortran/99125] [9 Regression] ICE: gimplification failed (gimplify.c:15068)

2021-09-06 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99125

anlauf at gcc dot gnu.org changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|ASSIGNED|RESOLVED

--- Comment #12 from anlauf at gcc dot gnu.org ---
Should be fixed on all open branches.  Closing.

Thanks for the report!

[Bug fortran/99125] [9 Regression] ICE: gimplification failed (gimplify.c:15068)

2021-09-06 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99125

--- Comment #11 from CVS Commits  ---
The releases/gcc-9 branch has been updated by Harald Anlauf
:

https://gcc.gnu.org/g:3e59c3c6f4c4f42a158d8ab936c995754bf22dee

commit r9-9711-g3e59c3c6f4c4f42a158d8ab936c995754bf22dee
Author: Paul Thomas 
Date:   Sat Mar 13 11:39:57 2021 +

Fortran: Fix for class defined operators [PR99125].

2021-03-13  Paul Thomas  

gcc/fortran
PR fortran/99125
* trans-array.c (gfc_conv_expr_descriptor): For deferred length
length components use the ss_info string length instead of
gfc_get_expr_charlen. Make sure that the deferred string length
is a variable before assigning to it. Otherwise use the expr.
* trans-expr.c (gfc_conv_string_length): Make sure that the
deferred string length is a variable before assigning to it.

gcc/testsuite/
PR fortran/99125
* gfortran.dg/alloc_deferred_comp_1.f90: New test.

(cherry picked from commit 7987beec679898cfa75839551d55ae5234a216bd)

[Bug fortran/99125] [9 Regression] ICE: gimplification failed (gimplify.c:15068)

2021-08-28 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99125

anlauf at gcc dot gnu.org changed:

   What|Removed |Added

Summary|[9/10/11/12 Regression] |[9 Regression] ICE:
   |ICE: gimplification failed  |gimplification failed
   |(gimplify.c:15068)  |(gimplify.c:15068)

--- Comment #10 from anlauf at gcc dot gnu.org ---
Cherry-picked to 10-branch for Paul after regtesting.