------- 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