[LLVMbugs] [Bug 20643] New: Lack of debug info for global var in unamed namespace

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 13 00:52:50 PDT 2014


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: unassignedclangbugs at nondot.org
          Reporter: griffithzhw at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140813/64c23778/attachment.html>


More information about the llvm-bugs mailing list