[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc-bugs
Subject: [Bug fortran/57710] [OOP] [F08] _vptr not set for allocatable CLASS component inside BLOCK
From: "janus at gcc dot gnu.org" <gcc-bugzilla () gcc ! gnu ! org>
Date: 2013-07-31 19:15:49
Message-ID: bug-57710-4-M0KvUDtJe1 () http ! gcc ! gnu ! org/bugzilla/
[Download RAW message or body]
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57710
--- Comment #4 from janus at gcc dot gnu.org ---
(In reply to janus from comment #2)
> Can't we do a 'static' initialization (of _vptr *and* _data) in both cases?
> As in
>
> struct t2 y = {.x={._vptr=&__vtab_m_T,._data = 0B}}
>
> For this gfc_class_null_initializer (from class.c) could be used ...
... we would just have to enable this for the BLOCK case in gfc_get_symbol
decl. However, I'm not sure if this is really the way to go.
Otherwise, one should do the (non-static) initialization of the _vptr via
gfc_nullify_alloc_comp.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic