[gfortran] patch: fix COMMON vars in module
Tobias Schlüter
tobias.schlueter@physik.uni-muenchen.de
Sat Jul 10 23:45:00 GMT 2004
Steve Kargl wrote:
> On Sun, Jul 11, 2004 at 01:18:03AM +0200, Tobias Schl?ter wrote:
>
>>Something like
>>MODULE m
>> common /c/x
^^^ y
>>contains
>> subroutine b()
>> x = 1.
^^^ y
>> end
>
> end subroutine b ! Didn't some guy name Tobi fix this :-)
;-) hm, maybe I should go to bed.
If it wasn't clear, the problem was that inside a module, variables from
commons weren't be translated correctly, and therefore there was no
relation between the memory locations of y and x from my corrected example.
Thanks for actually trying my example,
- Tobi
More information about the Fortran
mailing list