[LLVMbugs] [Bug 8270] New: Duplicate symbol with extern inline in C++
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Oct 1 02:23:59 PDT 2010
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: unassignedclangbugs at nondot.org
ReportedBy: pcgod99 at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
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.
More information about the llvm-bugs
mailing list