[Bug debug/11114] GCC doesn't generate DW_TAG_namespace entries

carlton@bactrian.org gcc-bugzilla@gcc.gnu.org
Fri Jun 6 19:43:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From carlton@bactrian.org  2003-06-06 19:43 -------
I suspect that there's a problem even with the patch that Andrew referenced.
I don't know for sure, but I'm using a variant of that patch with GCC 3.2.3,
and I know that there's a problem with the variant that I'm using.  In some
contexts, if you have a templated class Temp and you instantiate it
like

  Temp<NS::C>

where C is a class living in a namespace NS, then, if the DIE for NS hasn't
been emitted yet, then that die gets created as a child of the DIE for
Temp<NS::C> instead of as a chield of the comp unit DIE.

I'm playing around with trying to fix that (though I'm not an expert on
dwarf2out.c (or any of GCC!), so I could use some help); if I do manage
to fix it, I'll attach a revised patch here.  (Maybe even a test case if
I get ambitious, though unfortunately the situation where I ran into this
problem involved a huge proprietary source file.)



More information about the Gcc-bugs mailing list