This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gfortran] patch for PR fortran/25681 : ICE with len of array of derived type


:ADDPATCH fortran:

Attached patch is a very simple fix for PR 25681 "ICE with len of
array of derived type". gfc_simplify_len was able to simplify LEN(s)
where s is a constant, but not LEN(s) where s is a variable with
constant length.

I'm not sure this is a complete fix of PR 25681: I tried to think of
examples where the length of the character variable inside the derived
type was not a constant, but couldn't devise one. If someone can
propose such an example, I will then leave PR 25681 open, waiting for
a complete fix.


Patch is regtested on i686-linux as well as all the PR testcases. It
also enables gfortran to compile CP2K, a very large chemistry
simulation code (it was the last bug preventing compilation).

OK for mainline and 4.1?

Thanks,
FX


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]