This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/49648] ICE(segfault) with MATMUL and function-result actual argument
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 6 Jul 2011 16:53:48 +0000
- Subject: [Bug fortran/49648] ICE(segfault) with MATMUL and function-result actual argument
- Auto-submitted: auto-generated
- References: <bug-49648-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49648
--- Comment #9 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-07-06 16:53:32 UTC ---
(In reply to comment #8)
> + else if (mp_flag && sym->attr.flavor == FL_PROCEDURE && sym->attr.function)
> + gfc_resolve_array_spec (sym->result->as, false);
I think one could add somewhere a condition "if (sym != sym->result)"; and I
was wondering whether also other items like length-type parameters are
effected. (I think, usually character lengths are shared, but I am not sure
whether it also happens here.)