This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36761] Unallocated array "referenced" silently
- From: "terry at chem dot gu dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Mar 2009 23:50:20 -0000
- Subject: [Bug fortran/36761] Unallocated array "referenced" silently
- References: <bug-36761-14178@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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