ericniebler / range-v3

Range library for C++14/17/20, basis for C++20's std::ranges
Other
4.11k stars 442 forks source link

0.9.x: test/multiple fails to build with clang 9.0-rc5 #1321

Open berolinux opened 5 years ago

berolinux commented 5 years ago

Building range-v3 0.9.1 or 0.9.0 with clang 9.0 results in:

ld: error: duplicate symbol: ranges::detail::_is_integer_like_<ranges::detail::diffmax_t>
>>> defined in test/CMakeFiles/multiple.dir/multiple1.cpp.o
>>> defined in test/CMakeFiles/multiple.dir/multiple2.cpp.o
clang-9: error: linker command failed with exit code 1 (use -v to see invocation)

0.5.0 is ok.

mlund commented 4 years ago

I have the same issue with anaconda installed clang9 on macos 10.14.6:

clang version 9.0.0 (tags/RELEASE_900/final)
Target: x86_64-apple-darwin18.7.0
oliverdain commented 4 years ago

Apple is now several versions past clang 9/Xcode 11.3. Is there any rough timeline for a fix (e.g. is anyone working on it)?

oliverdain commented 3 years ago

This isn't OSX specific. I'm now seeing this with newer versions of clang (clang 10) on Linux as well.