[clang] [Clang] Fix handling of immediate escalation for inherited constructors (PR #112860)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 18 02:24:32 PDT 2024


================
@@ -3284,6 +3284,13 @@ bool FunctionDecl::isImmediateEscalating() const {
   // consteval specifier,
   if (isDefaulted() && !isConsteval())
     return true;
+
+  if (auto *CD = dyn_cast<CXXConstructorDecl>(this);
----------------
tbaederr wrote:

```suggestion
  if (const auto *CD = dyn_cast<CXXConstructorDecl>(this);
```

https://github.com/llvm/llvm-project/pull/112860


More information about the cfe-commits mailing list