[llvm-bugs] [Bug 45054] New: can not link object emitted by clang
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Feb 27 21:47:49 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=45054
Bug ID: 45054
Summary: can not link object emitted by clang
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: MC
Assignee: unassignedbugs at nondot.org
Reporter: kamleshbhalui at gmail.com
CC: llvm-bugs at lists.llvm.org
consider below reduced testcase from c++20 ranges test
$cat a.cc
namespace detail{
template<typename D>
constexpr bool myb=false;
template<>
constexpr bool myb<bool> =true;
}
int main(){
return 0;
}
$cat b.cc
namespace detail{
template<typename D>
constexpr bool myb=false;
template<>
constexpr bool myb<bool> =true;
}
$clang++ a.cc b.cc -std=c++14
getting multiple definition error for myb<bool>
$g++ a.cc b.cc -std=c++14
links successfully
is compiler(clang) need fix here?
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200228/db17d811/attachment.html>
More information about the llvm-bugs
mailing list