This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/38390] Missing DW_TAG_imported_module



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]