]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix ICE with automatic reallocation [PR100245]
authorJosé Rui Faustino de Sousa <jrfsousa@gmail.com>
Fri, 2 Sep 2022 19:35:22 +0000 (21:35 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Sat, 3 Sep 2022 18:32:37 +0000 (20:32 +0200)
commit504424f33771be0405454e7845219d5df1bb88bb
tree3a62158659305463f37321dc142c0f93742b9f5c
parentdae8b9e2bbb6017bf90d68c7b720c500125c8295
Fortran: Fix ICE with automatic reallocation [PR100245]

gcc/fortran/ChangeLog:

PR fortran/100245
* trans-expr.cc (trans_class_assignment): Add if clause to handle
derived type in the LHS.

gcc/testsuite/ChangeLog:

PR fortran/100245
* gfortran.dg/PR100245.f90: New test.
gcc/fortran/trans-expr.cc
gcc/testsuite/gfortran.dg/PR100245.f90 [new file with mode: 0644]