[Bug fortran/46152] [F03] ALLOCATE with type-spec fails for intrinsic types
kargl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Nov 2 22:02:00 GMT 2010
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46152
--- Comment #19 from kargl at gcc dot gnu.org 2010-11-02 22:02:42 UTC ---
Author: kargl
Date: Tue Nov 2 22:02:37 2010
New Revision: 166217
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166217
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:
branches/gcc-4_5-branch/gcc/testsuite/gfortran.dg/allocate_with_typespec_1.f90
branches/gcc-4_5-branch/gcc/testsuite/gfortran.dg/allocate_with_typespec_2.f
branches/gcc-4_5-branch/gcc/testsuite/gfortran.dg/allocate_with_typespec_3.f90
branches/gcc-4_5-branch/gcc/testsuite/gfortran.dg/allocate_with_typespec_4.f90
Modified:
branches/gcc-4_5-branch/gcc/fortran/ChangeLog
branches/gcc-4_5-branch/gcc/fortran/match.c
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
branches/gcc-4_5-branch/gcc/testsuite/gfortran.dg/allocate_derived_1.f90
branches/gcc-4_5-branch/gcc/testsuite/gfortran.dg/select_type_1.f03
branches/gcc-4_5-branch/gcc/testsuite/gfortran.dg/select_type_11.f03
More information about the Gcc-bugs
mailing list