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/33954] gfortran: incorrect output for array of dynamic bounds



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


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