ICE when trying to use character (len=:)
Tobias Burnus
burnus@net-b.de
Wed Feb 16 07:28:00 GMT 2011
Hi,
Gunnar Björkman wrote:
> I got an ICE when I try to compile the following piece of code,
>
> type name_type
> character (len=:), allocatable :: name
> end type name_type
Deferred length-type parameters for character in derived types are not
yet implemented.
That's tracked in PR 45170, but not well documented*:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45170#c9
(* currently, it seems to be only mentioned at http://gcc.gnu.org/wiki/OOP )
As the 4.6 release is imminent**, it is extremely unlikely to be fixed
for the 4.6 release, though someone might convert the ICE into a nicer
error message. One might mention it in the release notes***, though.
** http://gcc.gnu.org/ml/gcc/2011-02/msg00250.html
*** http://gcc.gnu.org/gcc-4.6/changes.html#fortran
Tobias
More information about the Fortran
mailing list