[Bug fortran/96158] Debug symbols not emitted for module common variables
sgk at troutmask dot apl.washington.edu
Mon Jul 13 14:35:51 GMT 2020
--- Comment #6 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Mon, Jul 13, 2020 at 12:23:58PM +0000, amelvill at umich dot edu wrote:
> --- Comment #4 from AJM <amelvill at umich dot edu> ---
> >> 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 to
> > modules, that is a good way to proceed. When all the direct usage
> > of the common block have been removed, you can then remove the
> > COMMON statement from the module.
> This is the case, more or less. I didn't write the code that did this.
> I would be quite happy to see the common blocks get moved to a module,
> but to make things a bit more dangerous on that side, these variables
> are bound to a C variable.
Do you mean the variable is declared with BIND(C)?
If so, you should be getting an error.
More information about the Gcc-bugs