[clang] Fix crash when doing special member lookup on forward-declared classes (Fixes llvm/llvm-project#144642) (PR #144828)

2025-06-18 Thread Ameya Gurjar via cfe-commits
https://github.com/Ameya674 edited https://github.com/llvm/llvm-project/pull/144828 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix crash when doing special member lookup on forward-declared classes (PR #144828)

2025-06-18 Thread Ameya Gurjar via cfe-commits
https://github.com/Ameya674 created https://github.com/llvm/llvm-project/pull/144828 The compiler tends to crash when encountering a forward-declared incomplete type in Sema::LookupSpecialMember. Fixed this by adding a check to handle the incomplete types. The patch compiles and clang trigger