This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32801] USE of ISO_C_BINDING, ONLY: C_LOC causes compiler seg fault
- From: "crickett at lanl dot gov" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jul 2007 20:18:59 -0000
- Subject: [Bug fortran/32801] USE of ISO_C_BINDING, ONLY: C_LOC causes compiler seg fault
- References: <bug-32801-14873@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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