[clang] [clang] Crash when referencing capture in static lambda (PR #74661)

2023-12-11 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/74661 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Crash when referencing capture in static lambda (PR #74661)

2023-12-07 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM, thanks https://github.com/llvm/llvm-project/pull/74661 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Crash when referencing capture in static lambda (PR #74661)

2023-12-07 Thread Ben Jackson via cfe-commits
https://github.com/puremourning updated https://github.com/llvm/llvm-project/pull/74661 >From cdd9b653de7aed3d54b5ac6c98fc943183509278 Mon Sep 17 00:00:00 2001 From: Ben Jackson Date: Wed, 6 Dec 2023 21:59:21 + Subject: [PATCH] Crash when referencing capture in static lambda The constant e

[clang] [clang] Crash when referencing capture in static lambda (PR #74661)

2023-12-07 Thread Ben Jackson via cfe-commits
https://github.com/puremourning updated https://github.com/llvm/llvm-project/pull/74661 >From 13afd0e5087340c62b31ff5d35c06b28f93086a5 Mon Sep 17 00:00:00 2001 From: Ben Jackson Date: Wed, 6 Dec 2023 21:59:21 + Subject: [PATCH] Crash when referencing capture in static lambda The constant e

[clang] [clang] Crash when referencing capture in static lambda (PR #74661)

2023-12-07 Thread Mariya Podchishchaeva via cfe-commits
@@ -848,6 +848,10 @@ Miscellaneous Clang Crashes Fixed `Issue 41302 `_ - Fixed a crash when ``-ast-dump=json`` was used for code using class template deduction guides. +- Fixed a crash when a lambda marked as `static` refer

[clang] [clang] Crash when referencing capture in static lambda (PR #74661)

2023-12-07 Thread Timm Baeder via cfe-commits
@@ -8492,14 +8492,24 @@ bool LValueExprEvaluator::VisitVarDecl(const Expr *E, const VarDecl *VD) { return false; if (auto *FD = Info.CurrentCall->LambdaCaptureFields.lookup(VD)) { + auto *MD = cast(Info.CurrentCall->Callee); tbaederr wrote: ``

[clang] [clang] Crash when referencing capture in static lambda (PR #74661)

2023-12-07 Thread Ben Jackson via cfe-commits
puremourning wrote: > Can you add a release note? Otherwise it looks good to me Yep, sure thing. Done. https://github.com/llvm/llvm-project/pull/74661 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang] [clang] Crash when referencing capture in static lambda (PR #74661)

2023-12-07 Thread Ben Jackson via cfe-commits
https://github.com/puremourning updated https://github.com/llvm/llvm-project/pull/74661 >From 8a72385996824f9cdd0feb5a1ca7aa771c03fe99 Mon Sep 17 00:00:00 2001 From: Ben Jackson Date: Wed, 6 Dec 2023 21:59:21 + Subject: [PATCH] Crash when referencing capture in static lambda The constant e

[clang] [clang] Crash when referencing capture in static lambda (PR #74661)

2023-12-06 Thread via cfe-commits
cor3ntin wrote: Can you add a release note? Otherwise it looks good to me https://github.com/llvm/llvm-project/pull/74661 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Crash when referencing capture in static lambda (PR #74661)

2023-12-06 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: I think this makes sense but @cor3ntin should look at it. https://github.com/llvm/llvm-project/pull/74661 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[clang] [clang] Crash when referencing capture in static lambda (PR #74661)

2023-12-06 Thread Ben Jackson via cfe-commits
https://github.com/puremourning edited https://github.com/llvm/llvm-project/pull/74661 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits