re PR fortran/52552 ([OOP] ICE when trying to allocate non-allocatable object giving...
commit98cf47d1a57c7c8f0541aa61488863f4864b0e40
authorJanus Weil <janus@gcc.gnu.org>
Fri, 8 Jun 2012 17:26:11 +0000 (8 19:26 +0200)
committerJanus Weil <janus@gcc.gnu.org>
Fri, 8 Jun 2012 17:26:11 +0000 (8 19:26 +0200)
tree8d289d12a300ed4e057d71380dc78973a09d46df
parentef0cd8fe8b4576fe98f4405d99431ed225ef3c17
re PR fortran/52552 ([OOP] ICE when trying to allocate non-allocatable object giving a dynamic type)

2012-06-08  Janus Weil  <janus@gcc.gnu.org>

PR fortran/52552
* match.c (gfc_match_allocate): Modify order of checks. Change wording
of error message. Remove FIXME note.
* resolve.c (resolve_allocate_expr): Add a comment.

2012-06-08  Janus Weil  <janus@gcc.gnu.org>

PR fortran/52552
* gfortran.dg/allocate_alloc_opt_1.f90: Modified.
* gfortran.dg/allocate_class_1.f90: Modified.
* gfortran.dg/allocate_with_typespec_4.f90: Modified.
* gfortran.dg/allocate_class_2.f90: New.

From-SVN: r188335
gcc/fortran/ChangeLog
gcc/fortran/match.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/allocate_alloc_opt_1.f90
gcc/testsuite/gfortran.dg/allocate_class_1.f90
gcc/testsuite/gfortran.dg/allocate_class_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/allocate_with_typespec_4.f90