From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6079 invoked by alias); 4 Apr 2008 22:44:21 -0000 Received: (qmail 5911 invoked by uid 48); 4 Apr 2008 22:43:38 -0000 Date: Fri, 04 Apr 2008 22:44:00 -0000 Message-ID: <20080404224338.5910.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: "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-04/txt/msg00392.txt.bz2 ------- Comment #20 from burnus at gcc dot gnu dot org 2008-04-04 22:43 ------- > Implements dynamic string length Great! But you also need the handle -fbounds-check. Compile the test case of comment 11 with -fbounds-check. The result is: Fortran runtime error: Different CHARACTER lengths (4/5) in array constructor Without type spec the error is correct, however, with the type spec the elements are allowed to have different lengths. For the test cases: How about adding one test case for -std=f95, which rejects this Fortran 2003 feature? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27997