https://bugs.llvm.org/show_bug.cgi?id=35697
Bug ID: 35697
Summary: Regression(r313729): Assertion `!Old ||
Old->getCachedLinkage() == D->getCachedLinkage()'
failed for external "C" function definition
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: release blocker
Priority: P
Component: C++
Assignee: unassignedclangb...@nondot.org
Reporter: arpha...@gmail.com
CC: dgre...@apple.com, llvm-bugs@lists.llvm.org
The commit r313729 introduced a new `!Old || Old->getCachedLinkage() ==
D->getCachedLinkage()' assertion failure that happens in the following cod e
sample:
extern "C" {
typedef struct {
int x;
} *ReturnStruct;
ReturnStruct foo(int s);
}
ReturnStruct foo(int s)
{
}
This is similar to existing bugs like
https://bugs.llvm.org/show_bug.cgi?id=33503 but is a new regression in Clang 6.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs