[clang] [Clang][Sema] fix crash in codegen stage when an lambda expression declared in an unevaluated context (PR #80802)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 6 06:49:50 PST 2024
================
@@ -1613,8 +1613,8 @@ namespace {
bool TemplateInstantiator::AlreadyTransformed(QualType T) {
if (T.isNull())
return true;
-
- if (T->isInstantiationDependentType() || T->isVariablyModifiedType())
+ if (T->isInstantiationDependentType() || T->isVariablyModifiedType() ||
+ (SemaRef.getLangOpts().CPlusPlus20 && T->isDecltypeType()))
----------------
erichkeane wrote:
Can you please add the relevant standards-quote here, particularly for the C++20 vs pre-C++20 change here?
https://github.com/llvm/llvm-project/pull/80802
More information about the cfe-commits
mailing list