re PR fortran/51652 (Allocate with type-spec and source-expr: check whether length...
authorTobias Burnus <burnus@net-b.de>
Tue, 10 Jan 2012 11:22:16 +0000 (12:22 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Tue, 10 Jan 2012 11:22:16 +0000 (12:22 +0100)
commit2e0bffaf8cc85cd8f5dd4a7b31ca354e0017b14e
tree6f2b9158f3eb1e9ffed7f3460c26bf0112f5d24c
parentc9423ca3fa65282b0ca58d33976c150f78e24f23
re PR fortran/51652 (Allocate with type-spec and source-expr: check whether length type-parameter is the same is lacking)

2012-01-10  Tobias Burnus  <burnus@net-b.de>

        PR fortran/51652
        * resolve.c (resolve_allocate_expr): For non-deferred char
        lengths, check whether type-spec matches declaration.

2012-01-10  Tobias Burnus  <burnus@net-b.de>

        PR fortran/51652
        * gfortran.dg/allocate_with_typespec_5.f90: New.

From-SVN: r183061
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/allocate_with_typespec_5.f90 [new file with mode: 0644]