From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5765 invoked by alias); 7 Jun 2008 17:04:55 -0000 Received: (qmail 5675 invoked by uid 48); 7 Jun 2008 17:04:12 -0000 Date: Sat, 07 Jun 2008 17:04:00 -0000 Message-ID: <20080607170412.5674.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/35830] ICE with PROCEDURE() containing array formal arguments In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "burnus at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-06/txt/msg00410.txt.bz2 ------- 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