http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45170
--- Comment #5 from Tobias Burnus <burnus at gcc dot gnu.org> 2010-11-02 17:10:05 UTC --- Author: burnus Date: Tue Nov 2 17:09:58 2010 New Revision: 166205 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166205 Log: 2010-11-02 Steven G. Kargl < ka...@gcc.gnu.org> Tobias Burnus <bur...@net-b.de> PR fortran/45170 * array.c (gfc_match_array_constructor): Reject deferred type parameter (DTP) in type-spec. * decl.c (char_len_param_value, match_char_length, gfc_match_char_spec, build_sym, variable_decl, enumerator_decl): Support DTP. * expr.c (check_inquiry): Fix check due to support for DTP. * gfortran.h (gfc_typespec): Add Boolean 'deferred'. * misc.c (gfc_clear_ts): Set it to false. * match.c (gfc_match_allocate): Support DTP. * resolve.c (resolve_allocate_expr): Not-implemented error for * DTP. (resolve_fl_variable): Add DTP constraint check. * trans-decl.c (gfc_trans_deferred_vars): Add not-implemented error for DTP. 2010-11-02 Steven G. Kargl < ka...@gcc.gnu.org> Tobias Burnus <bur...@net-b.de> PR fortran/45170 * gfortran.dg/deferred_type_param_1.f90: New. * gfortran.dg/deferred_type_param_2.f90: New. * gfortran.dg/initialization_1.f90: Update dg-errors. * gfortran.dg/initialization_9.f90: Update dg-errors. Added: trunk/gcc/testsuite/gfortran.dg/deferred_type_param_1.f90 trunk/gcc/testsuite/gfortran.dg/deferred_type_param_2.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/array.c trunk/gcc/fortran/decl.c trunk/gcc/fortran/expr.c trunk/gcc/fortran/gfortran.h trunk/gcc/fortran/match.c trunk/gcc/fortran/misc.c trunk/gcc/fortran/resolve.c trunk/gcc/fortran/trans-decl.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gfortran.dg/allocate_with_typespec_3.f90 trunk/gcc/testsuite/gfortran.dg/initialization_1.f90 trunk/gcc/testsuite/gfortran.dg/initialization_9.f90