sammccall added a comment. To preserve the decl, we could consider as a next step building a recoveryexpr wrapping a declrefexpr pointing at the invalid decl.
This was discussed in the patch you linked, but I don't think it was tried? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D120812/new/ https://reviews.llvm.org/D120812 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits