This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/27997] Fortran 2003: Support type-spec for array constructor



------- 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  <d@domob.eu>

        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  <d@domob.eu>

        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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]