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/36761] Unallocated array "referenced" silently



------- Comment #3 from terry at chem dot gu dot se  2009-03-29 23:50 -------
Not a dupe of PR20520.  That one is for questionable code producing (or not)
some unexpected (to some) output, and crashing when run.  This is illegal code
that compiles AND RUNS quietly.  Here unallocated is giving the same behaviour
as size 0.  The array residing in a module matters in this case.

I've just tried it again with the same result.  If I insert a
write(*,*)size(Md,1),size(Md,2) and run it, it prints two 1s.


-- 

terry at chem dot gu dot se changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|DUPLICATE                   |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36761


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