[clang] [Clang] Skip type-aware operator delete resolution for incomplete pointee types (PR #213455)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 2 10:28:05 PDT 2026
nots1dd wrote:
> This PR adds a completeness check in `Sema::ActOnCXXDelete` so type-aware operator delete lookup is skipped when the pointee type is incomplete.
>
> Added a test covering C++17/23 (warn) and C++26 (error).
>
> Fixes #212675
Hey, just curious in case am missing anything why not just check the language opts (`LangOpts`) for the cpp standard and accordingly decide if we want to allow type aware allocator lookup?
https://github.com/llvm/llvm-project/pull/213455
More information about the cfe-commits
mailing list