This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch,Fortran] Copy more attributes for PROCEDURE() (PR35830)
- From: "Janus Weil" <jaydub66 at googlemail dot com>
- To: "Tobias Burnus" <tobias dot burnus at physik dot fu-berlin dot de>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Sun, 8 Jun 2008 00:50:56 +0200
- Subject: Re: [Patch,Fortran] Copy more attributes for PROCEDURE() (PR35830)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=jtQuUpD/2Z5TY6BQ+HAi9+YfN0XepvtILPjloPG2Tf0=; b=G4vFz+YeNNRXB2tMpDG66TvjiPaqdO/x4x030QVBtpLV56zVrCTMrjRnViraLnyFwq lBNhr5I14BrK2OeyvR4Ln3N+KDl+YoZNd4uSj471hNn1WPx2KkE/3j9u1CX71KDCJkUy ZyQ1XX9WwQQMy4+9GguwP9dN6aYHE4P0UbPDY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=FVtwTu7MCOXh3D1yvllZDnxjgfkQSe0pcE8hxnpfh+k6TBsY3AGoiytXiUkI3C8flm CsUd2Nw1P/5dcxAMCcymqZFNGtMDCwz7SppJrRgq2gzdIsG0C6rotG5Kz5eomPdgIeGQ cgzFjPQngDOgnyjpfRb+tBNqDnLuB6+E+Is/I=
- References: <20080607190755.GA3697@physik.fu-berlin.de> <854832d40806071511v398a06bcj43889c2ef0bcd0dd@mail.gmail.com>
> This is compiled without any trouble, but when executing I get a
> Fortran runtime error: Attempting to allocate already allocated array
Actually this was done on a clean trunk. With your patch I get:
procedure(ai) :: f
1
Error: Array 'f' at (1) cannot have a deferred shape
Additionally copying attr.allocatable fixes this and makes the program
run properly.
Cheers,
Janus