This is the mail archive of the gcc-patches@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]

Re: [gfortran] patch: fix COMMON vars in module


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


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