[clang] [Clang] Fixes __builtin_is_implicit_lifetime for types with deleted ctrs (PR #161163)
Andrey Ali Khan Bolshakov via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 3 04:42:37 PDT 2025
bolshakov-a wrote:
After this change, clang fails to detect implicitly defined trivial copy constructors. The assertion fails in this code:
```cpp
struct S {
S();
};
//S s1;
static_assert(__builtin_is_implicit_lifetime(S));
```
Comment out `s1` definition, and the code compiles, probably due to instantiation of the implicit `S` members.
https://github.com/llvm/llvm-project/pull/161163
More information about the cfe-commits
mailing list