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