This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/35830] ICE with PROCEDURE(<interface>) containing array formal arguments
- 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: 7 Jun 2008 17:04:12 -0000
- Subject: [Bug fortran/35830] ICE with PROCEDURE(<interface>) containing array formal arguments
- References: <bug-35830-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from burnus at gcc dot gnu dot org 2008-06-07 17:04 -------
> rev. 136130 contains the fixes from comment #2 and comment #3, but the test
> case from comment #1 is still failing.
Diff between dumped tree from comment #6 (working) and comment #1 (failing):
- f (&parm.38);
+ D.1203 = _gfortran_internal_pack (&parm.38);
+ f (D.1203);
[...]
That means that the argument of f is regarded as assumed-size array ("a(*)")
instead of as assumed-size array ("a(:)"). This happens for instance when the
interface of "f" is not known (or when as->type is wrong).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35830