Hi all,

here is a small patch for a wrong-code regression with polymorphic
allocation. The problem is that we falsely detect the allocation
variable to be a polymorphic array (although it is a scalar). For
further details see the PR, in particular comment 4.

Regtested on x86_64-unknown-linux-gnu. Ok for trunk and 4.7?

Cheers,
Janus


2012-10-03  Janus Weil  <ja...@gcc.gnu.org>

        PR fortran/54784
        * trans-stmt.c (gfc_trans_allocate): Correctly determine the reference
        to the _data component for polymorphic allocation with SOURCE.

2012-10-03  Janus Weil  <ja...@gcc.gnu.org>

        PR fortran/54784
        * gfortran.dg/class_allocate_13.f90: New.

Attachment: pr54784.diff
Description: Binary data

Attachment: class_allocate_13.f90
Description: Binary data

Reply via email to