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

François-Xavier Coudert fxcoudert@gmail.com
Fri Apr 28 12:15:00 GMT 2006


With the patch really attached. Sorry.

> 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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: char_type_len.ChangeLog
Type: application/octet-stream
Size: 300 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060428/53ad9ce2/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: char_type_len.diff
Type: text/x-patch
Size: 1694 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060428/53ad9ce2/attachment.bin>


More information about the Gcc-patches mailing list