------- Comment #2 from burnus at gcc dot gnu dot org 2008-06-13 13:30 ------- Daniel, as you have implemented the constructor with type spec, maybe you have an idea how to fix this best. The error message is generated in decl.c's gfc_set_constant_character_len.
The problem is that for -std=f2003 the same error is generated as if no type-spec were present; gfc_set_constant_character_len is called at three places (with argument array=true). I believe we forgot to test character string when implementing it - and characters are always special due to the LENGTH type parameter. (The length-type parameter of derived types will also be fun, but it will probably not be implemented soon.) -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |d at domob dot eu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36517