http://llvm.org/bugs/show_bug.cgi?id=20643

            Bug ID: 20643
           Summary: Lack of debug info for global var in unamed namespace
           Product: clang
           Version: 3.4
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

$ cat test.cpp
namespace B {
  namespace {
    class D {
      public:
        int i;
    };
  }
}

B::D x;

int main() {
}

$ clang++ test.cpp -g

$ gdb a.out
GNU gdb (GDB) SUSE (7.3-0.10.1)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "ppc64-suse-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /nfs/terran/home/zhuhw/working/test/a.out...done.
(gdb) ptype x
No symbol "x" in current context.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to