[llvm-bugs] [Bug 41928] New: Missing Debug Info for Typedefs Inside Class Definitions
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri May 17 15:55:39 PDT 2019
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: unassignedclangbugs at nondot.org
Reporter: matthew.voss at sony.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
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190517/0fd47906/attachment.html>
More information about the llvm-bugs
mailing list