[Bug fortran/46152] [F03] ALLOCATE with type-spec fails for intrinsic types
kargl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Nov 1 19:30:00 GMT 2010
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46152
--- Comment #18 from kargl at gcc dot gnu.org 2010-11-01 19:30:01 UTC ---
Author: kargl
Date: Mon Nov 1 19:29:57 2010
New Revision: 166140
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166140
Log:
2010-10-30 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/46152
* gfortran.dg/select_type_11.f03: Update dg-error phrase.
* gfortran.dg/allocate_with_typespec_4.f90: New test.
* gfortran.dg/allocate_with_typespec_1.f90: New test.
* gfortran.dg/allocate_with_typespec_2.f: New test.
* gfortran.dg/allocate_with_typespec_3.f90: New test.
* gfortran.dg/allocate_derived_1.f90: Delete an obselescent test.
* gfortran.dg/select_type_1.f03: Update dg-error phrase.
2010-10-30 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/46152
* fortran/match.c (match_derived_type_spec): Reoplace gfc_match_symbol
with a gfc_find_symbol to prevent namespace pollution. Remove dead
code.
(match_type_spec): Remove parsing of '::'. Collapse character
kind checking to one location.
(gfc_match_allocate): Use correct locus in error message.
Added:
trunk/gcc/testsuite/gfortran.dg/allocate_with_typespec_1.f90
trunk/gcc/testsuite/gfortran.dg/allocate_with_typespec_2.f
trunk/gcc/testsuite/gfortran.dg/allocate_with_typespec_3.f90
trunk/gcc/testsuite/gfortran.dg/allocate_with_typespec_4.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/match.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/allocate_derived_1.f90
trunk/gcc/testsuite/gfortran.dg/select_type_1.f03
trunk/gcc/testsuite/gfortran.dg/select_type_11.f03
More information about the Gcc-bugs
mailing list