This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/38390] Missing DW_TAG_imported_module
- From: "dodji at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Dec 2008 20:27:37 -0000
- Subject: [Bug debug/38390] Missing DW_TAG_imported_module
- References: <bug-38390-12292@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from dodji at gcc dot gnu dot org 2008-12-05 20:27 -------
It looks like this is due to the fact that f contains no statement considered
"meaningful" by the front end. So, no BIND_EXPR node is being generated for its
body, so no debug info is being generated for its body either.
For instance, in the example below:
namespace A
{
int v;
}
int
f ()
{
int i = 0;
using namespace A;
return v;
}
the DW_AT_imported_module is being generated correctly.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38390