| Issue |
184740
|
| Summary |
error: '__COUNTER__' is a C2y extension
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
androm3da
|
This clang test appears to be failing in multiple cherry-pick-to-release/22.x PRs:
```
FAILED: tools/clang/tools/extra/clangd/benchmarks/CMakeFiles/IndexBenchmark.dir/IndexBenchmark.cpp.o
sccache /opt/llvm/bin/clang++ -DBENCHMARK_STATIC_DEFINE -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clangd/benchmarks -I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/benchmarks -I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/../include-cleaner/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clangd/../clang-tidy -I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/clangd -I/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/benchmark/include -gmlt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -MD -MT tools/clang/tools/extra/clangd/benchmarks/CMakeFiles/IndexBenchmark.dir/IndexBenchmark.cpp.o -MF tools/clang/tools/extra/clangd/benchmarks/CMakeFiles/IndexBenchmark.dir/IndexBenchmark.cpp.o.d -o tools/clang/tools/extra/clangd/benchmarks/CMakeFiles/IndexBenchmark.dir/IndexBenchmark.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/benchmarks/IndexBenchmark.cpp
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/clangd/benchmarks/IndexBenchmark.cpp:83:1: error: '__COUNTER__' is a C2y extension [-Werror,-Wc2y-extensions]
83 | BENCHMARK(memQueries);
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/benchmark/include/benchmark/benchmark.h:1503:3: note: expanded from macro 'BENCHMARK'
1503 | BENCHMARK_PRIVATE_DECLARE(_benchmark_) = \
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/benchmark/include/benchmark/benchmark.h:1498:44: note: expanded from macro 'BENCHMARK_PRIVATE_DECLARE'
1498 | static ::benchmark::internal::Benchmark* BENCHMARK_PRIVATE_NAME(n) \
| ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/benchmark/include/benchmark/benchmark.h:1484:45: note: expanded from macro 'BENCHMARK_PRIVATE_NAME'
1484 | BENCHMARK_PRIVATE_CONCAT(benchmark_uniq_, BENCHMARK_PRIVATE_UNIQUE_ID, \
| ^
...
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs