[llvm-bugs] [Bug 43054] New: clang does not produce good debug information for typedefs to anonymous unions

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 19 14:56:00 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=43054

            Bug ID: 43054
           Summary: clang does not produce good debug information for
                    typedefs to anonymous unions
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: cbiesinger at google.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Test program:

#include <pthread.h>

class X {
  using AnonUnionTypedef = pthread_mutex_t;
  AnonUnionTypedef u;
} x;

(gdb) pi gdb.lookup_type('X::AnonUnionTypedef').strip_typedefs().name is None
True

Conversely if I compile with g++:

(gdb) pi gdb.lookup_type('X::AnonUnionTypedef').strip_typedefs().name 
'pthread_mutex_t'

-- 
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/20190819/2a48cf4a/attachment-0001.html>


More information about the llvm-bugs mailing list