https://bugs.llvm.org/show_bug.cgi?id=33711
Bug ID: 33711
Summary: MS ABI: debug information crashes on diamond
inheritance
Product: clang
Version: 4.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
clang version 4.0.1 (tags/RELEASE_401/final)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\LLVM\bin
Reduced test case (after a 24-hour rather painful reduction!):
struct a {
char *b;
size_t c;
};
class d {
public:
virtual ~d();
};
class e {
int f();
a g();
};
class h {
protected:
h();
virtual ~h();
};
class i : virtual d, h {
public:
~i();
};
class j : i, d {
public:
j(e *, char *, size_t) {}
};
int e::f() { j(this, g().b, g().c); }
clang-cl /c /Z7 /EHsc -m64 -fmsc-version=1900 test.cc
test.cc(22,14): warning: direct base 'd' is inaccessible due to ambiguity:
class j -> class i -> class d
class j -> class d [-Winaccessible-base]
class j : i, d {
^
test.cc(26,37): warning: control reaches end of non-void function
[-Wreturn-type]
int e::f() { j(this, g().b, g().c); }
^
inlinable function call in a function with debug info must have a !dbg location
call void @"\01??_Di@@UEAA@XZ"(%class.i* %this1) #7
fatal error: error in backend: Broken function found, compilation aborted!
clang-cl.exe: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 4.0.1 (tags/RELEASE_401/final)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\LLVM\bin
clang-cl.exe: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-cl.exe: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-cl.exe: note: diagnostic msg: C:\cygwin\tmp\test-3b01e5.cpp
clang-cl.exe: note: diagnostic msg: C:\cygwin\tmp\test-3b01e5.sh
clang-cl.exe: note: diagnostic msg:
********************
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs