This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Fix PR debug/19345
Daniel Berlin wrote:
Are all types supposed to have a TYPE_STUB_DECL, regardless of where
they were created?
I'm not sure. Every time I try to understand TYPE_STUB_DECL I get
confused. Only Jason Merrill seems to have a firm grasp on that.
If so, then i also believe this bug is somewhere in the frontends, not
creating a TYPE_STUB_DECL for the type "created" in the asm.
If not, then i believe the bug is what the patch fixed: That, if not all
type's have a TYPE_STUB_DECL, then we need to be prepared to handle this
case, and do something sensible.
There's a third possibility: for types with no TYPE_STUB_DECL, use
DECL_CONTEXT on the TYPE_DECL you do have.
I would suggesting asking Jason; he might have an answer to your first
key question: is this a front-end bug?