This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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 <janus@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 <janus@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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |