This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug fortran/47189] [OOP] calling STORAGE_SIZE on a NULL-initialized class pointer


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47189

--- Comment #2 from janus at gcc dot gnu.org 2011-01-07 12:08:48 UTC ---
Author: janus
Date: Fri Jan  7 12:08:21 2011
New Revision: 168565

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168565
Log:
2011-01-07  Janus Weil  <janus@gcc.gnu.org>

    PR fortran/47189
    PR fortran/47194
    * gfortran.h (gfc_lval_expr_from_sym): Moved prototype.
    * class.c (gfc_class_null_initializer): Initialize _vptr to declared
    type.
    * expr.c (gfc_lval_expr_from_sym): Moved here from symbol.c.
    * resolve.c (resolve_deallocate_expr): _data component will be added
    at translation stage.
    * symbol.c (gfc_lval_expr_from_sym): Moved to expr.c.
    * trans-stmt.c (gfc_trans_deallocate): Reset _vptr to declared type.


2011-01-07  Janus Weil  <janus@gcc.gnu.org>

    PR fortran/47189
    PR fortran/47194
    * gfortran.dg/storage_size_3.f08: Extended.

Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/class.c
    trunk/gcc/fortran/expr.c
    trunk/gcc/fortran/gfortran.h
    trunk/gcc/fortran/resolve.c
    trunk/gcc/fortran/symbol.c
    trunk/gcc/fortran/trans-stmt.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/storage_size_3.f08


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]