------- Comment #4 from burnus at gcc dot gnu dot org 2009-03-29 17:46 ------- > This should be an error rather than a warning?
Good question. I could imagine some legacy code which does: character(len=5) :: str(5) print *, str(1)(1:10) or something similar in spirit. (I cannot come up with a good example, though.) If something like that could occur in legacy code, a warning might be better. If not, an error is appropriate and the ICE easier to fix. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38568