This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/38568] ICE with invalid bounds for I/O FMT= array
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Mar 2009 17:46:08 -0000
- Subject: [Bug fortran/38568] ICE with invalid bounds for I/O FMT= array
- References: <bug-38568-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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