[clang] [compiler-rt] [clang][Sema] fix -Wunused-private-field false-positive when use is templated (PR #237374)
Nick Desaulniers via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 3 15:51:41 PST 2026
nickdesaulniers wrote:
libc++ needs some fixes, too:
```
# | While building module 'std' imported from /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxx/test/extensions/clang/clang_modules_include.gen.py/experimental/propagate_const.compile.pass.cpp:6:
# | In file included from <module-includes>:1:
# | In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxx/test-suite-install/include/c++/v1/algorithm:1918:
# | In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxx/test-suite-install/include/c++/v1/__algorithm/inplace_merge.h:27:
# | In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxx/test-suite-install/include/c++/v1/__memory/unique_ptr.h:25:
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/runtimes/runtimes-bins/libcxx/test-suite-install/include/c++/v1/__memory/compressed_pair.h:80:8: error: private field '__padding_' is not used [-Werror,-Wunused-private-field]
# | 80 | char __padding_[sizeof(_ToPad) - __datasizeof_v<_ToPad>] = {};
# | | ^
```
(many more, might split that out into its own patch for libc++)
https://github.com/llvm/llvm-project/pull/237374
More information about the cfe-commits
mailing list