[Bug fortran/40737] Pointer references sometimes fail to define "span" symbols
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Jul 22 09:21:00 GMT 2009
------- Comment #7 from burnus at gcc dot gnu dot org 2009-07-22 09:20 -------
My current understanding is that "span" is only created (in
gfc_get_symbol_decl)
if (sym->attr.subref_array_pointer)
is true - and is then assumed to live at the same place as the symbol (array
descriptor) itself. But this fails for use association (and maybe also for host
association).
Solution 1: Always create that variable if they symbols is a pointer to an
array.
Solution 2: Defer it until we have the proper array descriptor, which handles
this.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40737
More information about the Gcc-bugs
mailing list