[llvm-bugs] [Bug 28248] New: [DebugInfo] Missing debug info for abstract classes with constexpr constructors with -flimited-debug-info
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jun 21 13:14:42 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=28248
Bug ID: 28248
Summary: [DebugInfo] Missing debug info for abstract classes
with constexpr constructors with -flimited-debug-info
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: rnk at google.com
CC: dblaikie at gmail.com, llvm-bugs at lists.llvm.org
Classification: Unclassified
While working on https://llvm.org/bugs/show_bug.cgi?id=28150, I noticed that
this C++ doesn't generate any debug info describing class 'A' in C++11:
struct A {
virtual void f() = 0;
};
struct B : A {
virtual void f() {}
};
B b;
On Windows, Clang defaults to C++11, so we don't get this debug info. I think
the C++11 aspect has to do with A's default constructor being constexpr. Adding
a user-defined ctor to A ensures that the debug info is emitted.
--
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/20160621/99cfaf4f/attachment.html>
More information about the llvm-bugs
mailing list