[Bug fortran/37829] New: ICE in resolve_symbol
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Oct 14 20:09:00 GMT 2008
module modx
use, intrinsic :: iso_c_binding
common /spaces/ sp
integer (c_long) :: sp
bind (c) :: /spaces/
end module modx
block data
use modx
double precision sums
common /cblock/ sums (4)
data (sums (i), i = 1,4) / 1.0, 2.0, 3.0, 4.0 /
end
ICEs in resolve_symbol:
9102 /* Make sure that the derived type has been resolved and that the
9103 derived type is visible in the symbol's namespace, if it is a
9104 module function and is not PRIVATE. */
9105 if (sym->ts.type == BT_DERIVED
9106 && sym->ts.derived->attr.use_assoc
9107 && sym->ns->proc_name->attr.flavor == FL_MODULE)
The first 2 conditions are true, but sym->ns->proc_name is NULL. sym is
c_funloc, with sym->module "__iso_c_binding".
--
Summary: ICE in resolve_symbol
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jakub at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37829
More information about the Gcc-bugs
mailing list