http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45959
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2010.10.10 11:29:26
AssignedTo|unassigned at gcc dot |rguenth at gcc dot gnu.org
|gnu.org |
Ever Confirmed|0 |1
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-10-10
11:29:26 UTC ---
We are writing DECL_CONTEXT of a TYPE_DECL which is a RECORD_TYPE which
is not instantiated.
We should probably simply clear all fields of RECORD_TYPEs which are
"incomplete" this way.
A more radical approach would be to do for TYPE_FIELDS what we do now
for BLOCK_SUBBLOCKS and BLOCK_VARS - write them lazily (but given that
they are possibly shared between multiple instances of RECORD_TYPEs
re-constructing the field list isn't really possible).
I have a patch.