From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2957 invoked by alias); 10 Apr 2006 14:35:31 -0000 Received: (qmail 2923 invoked by uid 48); 10 Apr 2006 14:35:28 -0000 Date: Mon, 10 Apr 2006 14:35:00 -0000 Message-ID: <20060410143528.2922.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/25597] ICE with allocate on the return value of a function, character array with a len of an argument In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "paul dot richard dot thomas at cea dot fr" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-04/txt/msg00781.txt.bz2 List-Id: ------- Comment #6 from paul dot richard dot thomas at cea dot fr 2006-04-10 14:35 ------- (In reply to comment #5) > (In reply to comment #4) > > A little further reduced: > Actually that is a different bug. > Anyways the reduced testcase looks like: > FUNCTION reallocate_hnv(p,n,LEN) > CHARACTER(LEN=LEN), DIMENSION(:), POINTER :: reallocate_hnv > ALLOCATE(reallocate_hnv(n)) > END FUNCTION reallocate_hnv This no longer ICEs but does bomn out in runtime, as described in PR27096 Paul -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25597