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

            Bug ID: 41928
           Summary: Missing Debug Info for Typedefs Inside Class
                    Definitions
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangb...@nondot.org
          Reporter: matthew.v...@sony.com
                CC: blitzrak...@gmail.com, dgre...@apple.com,
                    erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
                    richard-l...@metafoo.co.uk

No debug info is currently emitted for typedefs nested inside of class
definitions. For example:

$ cat test.cpp
struct A {
    int a;
    A(int a) : a(a) {}
};
struct B : A {
    using BA = A;
    int b;
    B(int b1, int b2) : BA(b1), b(b2) {}
};
int main() {
    B b{1,2};
    return b.b + b.a;
}
$ clang --version | grep version
clang version 9.0.0 (https://github.com/llvm/llvm-project.git f672b6170ce...
$ clang -g -S -emit-llvm test.cpp
$ grep BA test.ll
$

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to