[Bug fortran/32801] USE of ISO_C_BINDING, ONLY: C_LOC causes compiler seg fault
crickett at lanl dot gov
gcc-bugzilla@gcc.gnu.org
Wed Jul 18 20:19:00 GMT 2007
------- Comment #2 from crickett at lanl dot gov 2007-07-18 20:18 -------
(In reply to comment #1)
> sym->ts has type BT_DERIVED, but yet sym->ts.derived is NULL. Maybe this should
> be set earlier, or maybe the test on (sym->ts.type == BT_DERIVED &&
> sym->ts.derived->components == NULL) just needs changing into (sym->ts.type ==
> BT_DERIVED && sym->ts.derived && sym->ts.derived->components == NULL).
>
> Christopher, any idea if this sym node is correct?
>
the sym node was incorrect. there is a simple error in
generate_isocbinding_symbol that auto-generated c_funptr instead of the
necessary c_ptr.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32801
More information about the Gcc-bugs
mailing list