Hi all,

here is a fix for class pointer initialization. The problem was that
'gfc_get_symbol_decl' did not recognize class pointers properly. The
first version of the patch posted in the PR induced problems with NULL
initialization of class pointers, which are fixed by the attached
second version.

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

Cheers,
Janus


2013-07-26  Janus Weil  <ja...@gcc.gnu.org>

    PR fortran/57306
    * trans-decl.c (gfc_get_symbol_decl): Treat class pointers.
    * trans-expr.c (gfc_conv_initializer): Ditto.

2013-07-26  Janus Weil  <ja...@gcc.gnu.org>

    PR fortran/57306
    * gfortran.dg/pointer_init_8.f90: New.

Attachment: pr57306_v2.diff
Description: Binary data

Attachment: pointer_init_8.f90
Description: Binary data

Reply via email to