re PR fortran/57549 (Bogus error with array constructor with derived-type typespec)
authorTobias Burnus <burnus@net-b.de>
Fri, 7 Jun 2013 15:05:47 +0000 (17:05 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Fri, 7 Jun 2013 15:05:47 +0000 (17:05 +0200)
commit894460a754c74f27c9dff3d4ff0d8b1c45d1f8d6
treeaabfb60b1fa8644cbc213b22b8baf303b5d8ba45
parentb5e0425c7c222004d535313f6c9344099556d1f1
re PR fortran/57549 (Bogus error with array constructor with derived-type typespec)

2013-06-07  Tobias Burnus  <burnus@net-b.de>

        PR fortran/57549
        * array.c (gfc_match_array_constructor): Call
        gfc_match_type_spec instead of gfc_match_decl_type_spec.
        * match.c (gfc_match_type_spec): Renamed from match_type_spec.
        (gfc_match_type_is, gfc_match_allocate): Update call.
        * match.h (gfc_match_type_spec): Add prototype.

2013-06-07  Tobias Burnus  <burnus@net-b.de>

        PR fortran/57549
        * gfortran.dg/array_constructor_48.f90: New.
        * gfortran.dg/array_constructor_type_14.f03: Correct test case.
        * gfortran.dg/array_constructor_type_15.f03: Ditto.

From-SVN: r199820
gcc/fortran/ChangeLog
gcc/fortran/array.c
gcc/fortran/match.c
gcc/fortran/match.h
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/array_constructor_48.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/array_constructor_type_14.f03
gcc/testsuite/gfortran.dg/array_constructor_type_15.f03