From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20229 invoked by alias); 16 May 2008 19:51:39 -0000 Received: (qmail 20118 invoked by alias); 16 May 2008 19:50:55 -0000 Date: Fri, 16 May 2008 19:51:00 -0000 Message-ID: <20080516195055.20117.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-05/txt/msg01254.txt.bz2 ------- Comment #25 from burnus at gcc dot gnu dot org 2008-05-16 19:50 ------- Subject: Bug 27997 Author: burnus Date: Fri May 16 19:50:04 2008 New Revision: 135439 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=135439 Log: 2008-04-16 Daniel Kraft PR fortran/27997 * gfortran.h: Added field "length_from_typespec" to gfc_charlength. * aray.c (gfc_match_array_constructor): Added code to parse * typespec. (check_element_type, check_constructor_type, gfc_check_constructor_type): Extended to support explicit typespec on constructor. (gfc_resolve_character_array_constructor): Pad strings correctly for explicit, constant character length. * trans-array.c: New static global variable * "typespec_chararray_ctor" (gfc_trans_array_constructor): New code to support explicit but dynamic character lengths. 2008-04-16 Daniel Kraft PR fortran/27997 * gfortran.dg/array_constructor_type_1.f03: New test * gfortran.dg/array_constructor_type_2.f03: New test * gfortran.dg/array_constructor_type_3.f03: New test * gfortran.dg/array_constructor_type_4.f03: New test * gfortran.dg/array_constructor_type_5.f03: New test * gfortran.dg/array_constructor_type_6.f03: New test * gfortran.dg/array_constructor_type_7.f03: New test * gfortran.dg/array_constructor_type_8.f03: New test * gfortran.dg/array_constructor_type_9.f: New test * gfortran.dg/array_constructor_type_10.f03: New test * gfortran.dg/array_constructor_type_11.f03: New test * gfortran.dg/array_constructor_type_12.f03: New test * gfortran.dg/array_constructor_type_13.f90: New test * gfortran.dg/array_constructor_type_14.f03: New test * gfortran.dg/array_constructor_type_15.f03: New test * gfortran.dg/array_constructor_type_16.f03: New test * gfortran.dg/array_constructor_type_17.f03: New test * gfortran.dg/array_constructor_type_18.f03: New test Added: trunk/gcc/testsuite/gfortran.dg/array_constructor_type_1.f03 trunk/gcc/testsuite/gfortran.dg/array_constructor_type_10.f03 trunk/gcc/testsuite/gfortran.dg/array_constructor_type_11.f03 trunk/gcc/testsuite/gfortran.dg/array_constructor_type_12.f03 trunk/gcc/testsuite/gfortran.dg/array_constructor_type_13.f90 trunk/gcc/testsuite/gfortran.dg/array_constructor_type_14.f03 trunk/gcc/testsuite/gfortran.dg/array_constructor_type_15.f03 trunk/gcc/testsuite/gfortran.dg/array_constructor_type_16.f03 trunk/gcc/testsuite/gfortran.dg/array_constructor_type_17.f03 trunk/gcc/testsuite/gfortran.dg/array_constructor_type_18.f03 trunk/gcc/testsuite/gfortran.dg/array_constructor_type_2.f03 trunk/gcc/testsuite/gfortran.dg/array_constructor_type_3.f03 trunk/gcc/testsuite/gfortran.dg/array_constructor_type_4.f03 trunk/gcc/testsuite/gfortran.dg/array_constructor_type_5.f03 trunk/gcc/testsuite/gfortran.dg/array_constructor_type_6.f03 trunk/gcc/testsuite/gfortran.dg/array_constructor_type_7.f03 trunk/gcc/testsuite/gfortran.dg/array_constructor_type_8.f03 trunk/gcc/testsuite/gfortran.dg/array_constructor_type_9.f Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/array.c trunk/gcc/fortran/gfortran.h trunk/gcc/fortran/trans-array.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27997