This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/40963] ICE segfault - c_loc with derived type component as argument
- From: "pastewka at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 31 Jan 2012 13:24:27 +0000
- Subject: [Bug fortran/40963] ICE segfault - c_loc with derived type component as argument
- Auto-submitted: auto-generated
- References: <bug-40963-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40963
--- Comment #6 from Lars Pastewka <pastewka at gmail dot com> 2012-01-31 13:24:27 UTC ---
A simple workaround for this bug seems to be:
cptr = c_loc(obj1%array(1,1))
in the above example. It compiles and appears to be doing what it should.
Maybe that also helps narrowing it down.