[Bug fortran/33954] gfortran: incorrect output for array of dynamic bounds
kargl at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Oct 31 05:56:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list