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: [email protected]
Reporter: [email protected]
CC: [email protected]
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._______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs