algorithm.cpp failed with clang-cl on Windows for "declaration does not declare anything"
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
Research direction
Start with test/algorithm.cpp at lines 32-35 and compare it with the minimal test.cpp reproducer in the issue. Check the declaration against current clang-cl behavior and nearby Boost.Range tests, then run the relevant algorithm test with clang-cl on Windows. Done means the test compiles and passes without the declaration error.
Written by the indexing model from the issue text.
Description
With the latest version of clang-cl, algorithm.cpp get failed with clang-cl on Windows for "declaration does not declare anything".
Related code:
https://github.com/boostorg/range/blob/72e2a4457a13eba0b8cddd2e68f058f74bd3d890/test/algorithm.cpp#L32-L35
A small reproducer(test.cpp):
namespace boost {
template <class T>
class counting_iterator
{};
}
template ::boost::counting_iterator<int>;
Error message:
ksh-3.2$ clang-cl -c test.cpp
test.cpp(6,10): error: declaration does not declare anything
template ::boost::counting_iterator<int>;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
The code is considered as not accepted(https://github.com/llvm/llvm-project/commit/1cbdf932b41eb58ed94fbc240e93b63653d95bd3).
- Dominant language
- C++
- Stars
- 45
- Forks
- 104
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from boostorg/range
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
Difficulty 1/5 Under an hour Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
duckdb/duckdb-wasm#2258 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
objectionary/eo-graphs#75 ·
-
Coarray integration tests carry no LABELS, so run_tests.py silently skips them under every backend Opencoarray
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
FISCO-BCOS/FISCO-BCOS#5642 ·