Closed
Description
With latest clang/main, seeing this error in compiling abseil-cpp from chromium using libc++ for runtime
clang version 19.0.0 (/home/kraj/work/llvm-project 1a4118f155f3446577cb0a93479d40fd8606a570) Target: aarch64-unknown-linux
clang++ -target aarch64-linux hash.i -std=gnu++20
../../../../../git/src/3rdparty/chromium/third_party/abseil-cpp/absl/container/internal/compressed_tuple.h:252:42: error: no member named 'get' in the global namespace
252 | return std::move(*this).StorageT<I>::get();
| ~~^
../../../../../git/src/3rdparty/chromium/third_party/abseil-cpp/absl/container/internal/compressed_tuple.h:257:43: error: no member named 'get' in the global namespace
257 | return absl::move(*this).StorageT<I>::get();
| ~~^
2 errors generated.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
llvmbot commentedon Jul 14, 2024
@llvm/issue-subscribers-clang-frontend
Author: Khem Raj (kraj)
clang++ -target aarch64-linux hash.i -std=gnu++20
hash.i.zip
mizvekov commentedon Jul 17, 2024
This looks related to CWG1835, lastly implemented in #98547
Adding
template
keyword beforeStorage
should fix it, but CWG1835 ended up being a very disruptive change, and in the future we will try make this a warning, not an error.cor3ntin commentedon Jul 17, 2024
Fixed by 59e56ee