This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/38813] ICE with C_LOC(array)
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jan 2009 21:26:57 -0000
- Subject: [Bug fortran/38813] ICE with C_LOC(array)
- References: <bug-38813-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from burnus at gcc dot gnu dot org 2009-01-14 21:26 -------
> @@ -2451 +2451 @@ gfc_conv_function_call (gfc_se * se, gfc
> - && fsym->as->type != AS_ASSUMED_SHAPE;
> + && fsym->as && fsym->as->type != AS_ASSUMED_SHAPE;
This might lead to wrong code (though I don't know what f77 means for C_LOC): I
think that instead of fsym->as->type one needs to go through the refs to the
component and do the check ...->as there.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38813