This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33954] gfortran: incorrect output for array of dynamic bounds
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Oct 2007 05:56:20 -0000
- Subject: [Bug fortran/33954] gfortran: incorrect output for array of dynamic bounds
- References: <bug-33954-15289@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from kargl at gcc dot gnu dot org 2007-10-31 05:56 -------
(In reply to comment #3)
>
> exactly! but why gfortran does that? is that permitted by fortran
> standards? thanks a lot.
See my previous comment. Your program is invalid Fortran. A Fortran
compiler can do anything it wants with your code. This includes
doing what you expected, or deleting everything on your hard drive, or
playing an MP3 file.
You'll also find that your program is reading/writing to memory
outside the array bounds. Good luck with that!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33954