http://llvm.org/bugs/show_bug.cgi?id=19516
Bug ID: 19516
Summary: dllimport on methods with definitions causes assertion
failure
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
struct X {
__declspec(dllimport) static int r() { return 5; }
};
int main() {
return X::r();
}
Building the following with clang-cl fails with:
Function is marked as dllimport, but not external.
i32 ()* @"\01?r@X@@SAHXZ"
fatal error: error in backend: Broken function found, compilation aborted!
clang-3.5: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs