Closed MitalAshok closed 2 months ago
@llvm/issue-subscribers-clang-frontend
Author: Mital Ashok (MitalAshok)
I think the problem is in SemaInit
:
It looks like outside of SemaInit
after calling SemaRef.LookupDestructor(...)
code checks the return value. I think we need something like:
if (!Destructor)
return false;
https://godbolt.org/z/877vsf8jb
This is a crash on invalid code.
Also a fixit for typos of
= delete
/= default
rather than complaining that it doesn't look like= 0
would be nice.