: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: amelvill at umich dot edu
Target Milestone: ---
Created attachment 48859
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48859&action=edit
A tarball archive demonstrating the problem
I am trying to debug a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96158
--- Comment #4 from AJM ---
>> I won't comment on the questionable programming idiom of placing
>> a common block in a module, which kind of defeats the niceties of
>> a module.
> If somebody wants to transition your code from using common blocks
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96158
--- Comment #5 from AJM ---
Also, in case it wasn't clear,
> Breakpoint 2, boo () at a.f90:9
> 9 write(*, '(A, I3)') "moduleVar=", n
> (gdb) p n
> $2 = 123
> (gdb) p moduleVar
> No symbol "moduleVar" in current context.
> (gdb) p (integ
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96158
--- Comment #8 from AJM ---
> > >> I won't comment on the questionable programming idiom of placing
> > >> a common block in a module, which kind of defeats the niceties of
> > >> a module.
> > > If somebody wants to transition your code from usi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96158
--- Comment #11 from AJM ---
Thanks for all your suggestions, they're very helpful!
>'-falign-commons'
> By default, 'gfortran' enforces **proper** alignment of all variables
> in a 'COMMON' block by padding them as needed...
I am not s