[Bug fortran/57549] Bogus error with array constructor with derived-type typespec

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jun 7 15:06:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57549

--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Author: burnus
Date: Fri Jun  7 15:05:47 2013
New Revision: 199820

URL: http://gcc.gnu.org/viewcvs?rev=199820&root=gcc&view=rev
Log:
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.


Added:
    trunk/gcc/testsuite/gfortran.dg/array_constructor_48.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/array.c
    trunk/gcc/fortran/match.c
    trunk/gcc/fortran/match.h
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/array_constructor_type_14.f03
    trunk/gcc/testsuite/gfortran.dg/array_constructor_type_15.f03



More information about the Gcc-bugs mailing list