http://llvm.org/bugs/show_bug.cgi?id=8270
Summary: Duplicate symbol with extern inline in C++
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
extern inline const int get_addrinfo_category();
const int get_addrinfo_category() { return 0; }
In a header file included from more than one file leads to the linker error:
multiple definition of `get_addrinfo_category()'
This works in GCC and breaks linking simple examples using Boost Asio.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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