]> gcc.gnu.org Git - gcc.git/commit - gcc/fortran/match.c
re PR fortran/46152 ([F03] ALLOCATE with type-spec fails for intrinsic types)
authorSteven G. Kargl <kargl@gcc.gnu.org>
Mon, 1 Nov 2010 19:29:57 +0000 (19:29 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Mon, 1 Nov 2010 19:29:57 +0000 (19:29 +0000)
commit1fccc6c3464c8862297bdf74d7bf22ac245e4639
tree506515bdd85f47dc0faa808648b77e532150461b
parente7e9eb2f27fb3bc9b95de1881e5461c1133a25bc
re PR fortran/46152 ([F03] ALLOCATE with type-spec fails for intrinsic types)

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.

From-SVN: r166140
gcc/fortran/ChangeLog
gcc/fortran/match.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/allocate_derived_1.f90
gcc/testsuite/gfortran.dg/allocate_with_typespec_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/allocate_with_typespec_2.f [new file with mode: 0644]
gcc/testsuite/gfortran.dg/allocate_with_typespec_3.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/allocate_with_typespec_4.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/select_type_1.f03
gcc/testsuite/gfortran.dg/select_type_11.f03
This page took 0.058327 seconds and 5 git commands to generate.