]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/41582 ([OOP] Allocation of abstract types requires a type spec or a...
authorTobias Burnus <burnus@gcc.gnu.org>
Fri, 9 Oct 2009 20:34:35 +0000 (22:34 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Fri, 9 Oct 2009 20:34:35 +0000 (22:34 +0200)
commitd0a9804e353b33d339e20f0aa2bd458a4ff08649
tree7eeb58c662060f0443817dc0734fd9cc29a924a0
parent7431bf06bc2bb01a307a796bf4de57d9ca48bb38
re PR fortran/41582 ([OOP] Allocation of abstract types requires a type spec or a SOURCE)

2009-10-09  Tobias Burnus  <burnus@net-b.de>

        PR fortran/41582
        * decl.c (encapsulate_class_symbol): Save attr.abstract.
        * resolve.c (resolve_allocate_expr): Reject class allocate
        without typespec or source=.
        * trans-stmt.c (gfc_trans_allocate): Change gfc_warning
        into gfc_error for "not yet implemented".

2009-10-09  Tobias Burnus  <burnus@net-b.de>

        PR fortran/41582
        * gfortran.dg/class_allocate_1.f03: Modify code such that
        it compiles with the gfc_warning->gfc_error change.
        * gfortran.dg/class_allocate_1.f03: New test.

From-SVN: r152601
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/resolve.c
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/class_allocate_1.f03
gcc/testsuite/gfortran.dg/class_allocate_2.f03 [new file with mode: 0644]