[llvm-bugs] [Bug 39246] New: Assertion failed: (D->getCachedLinkage() == LV.getLinkage()), function getLVForDecl, file tools/clang/lib/AST/Decl.cpp, line 1422.
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Oct 10 12:16:51 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=39246
Bug ID: 39246
Summary: Assertion failed: (D->getCachedLinkage() ==
LV.getLinkage()), function getLVForDecl, file
tools/clang/lib/AST/Decl.cpp, line 1422.
Product: new-bugs
Version: 7.0
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: dimitry at andric.com
CC: llvm-bugs at lists.llvm.org
This assertion shows up when building the FreeBSD emulators/rpcs3 port (a PS/3
emulator) with either clang 6.0.1 or 7.0.0, see also
https://bugs.freebsd.org/231952
Reduced test case:
// clang -cc1 -triple x86_64-- -S -std=gnu++17 cellAudio-minimized.cpp
struct a {};
template <typename> inline const a b;
struct {
void c() { b<int>; }
} d;
void e() { d.c(); }
$ clang -cc1 -triple x86_64-- -S -std=gnu++17 cellAudio-minimized.cpp
cellAudio-minimized.cpp:5:14: warning: expression result unused
void c() { b<int>; }
^~~~~~
Assertion failed: (D->getCachedLinkage() == LV.getLinkage()), function
getLVForDecl, file /usr/src/contrib/llvm/tools/clang/lib/AST/Decl.cpp, line
1422.
Abort trap
--
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/20181010/2ae1b840/attachment.html>
More information about the llvm-bugs
mailing list