This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/38568] ICE with invalid bounds for I/O FMT= array



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]