From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30913 invoked by alias); 1 Apr 2008 08:13:09 -0000 Received: (qmail 30733 invoked by uid 48); 1 Apr 2008 08:12:26 -0000 Date: Tue, 01 Apr 2008 08:13:00 -0000 Message-ID: <20080401081226.30732.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/27997] Fortran 2003: Support type-spec for array constructor In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "d at domob dot eu" 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-04/txt/msg00025.txt.bz2 ------- Comment #15 from d at domob dot eu 2008-04-01 08:12 ------- The bootstrap problem is fixed, but with dynamic lengths I'm still struggling ;) However, the following program without typespec in the array constructor also fails (according to my judging what it should do) both with 4.3 and my (patched) SVN version; I don't have access to an unpatched one: PROGRAM test CALL foo (8, "short") CONTAINS SUBROUTINE foo (n, s) INTEGER :: n CHARACTER(len=*) :: s CHARACTER(len=n) :: arr(2) arr = (/ 'test', s /) WRITE (*,*) arr(1) WRITE (*,*) arr(2) WRITE (*,*) s WRITE (*,*) END SUBROUTINE foo END PROGRAM test Is this anouther bug or do I misinterpret something? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27997