------- Comment #2 from d at domob dot eu 2008-05-03 13:35 ------- Just one more thought, for array-constructors with all constant strings/components with length known at compile-time we should maybe give a compiler error instead of a runtime-error? Or only a warning and no runtime-checking?
I believe at least for those arrays at the moment gfc_resolve_char_array_constructor changes the string lengths so they all match which means this is because there's no runtime error (IIRC). If there should be an error, we could do it there. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36112