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: unassignedb...@nondot.org
Reporter: kamleshbha...@gmail.com
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs