[clang] [Sema][CUDA][HIP] Report deferred diagnostics of force-emitted functions (PR #229008)

Steffen Larsen via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 20 01:29:21 PDT 2026


================
@@ -2104,7 +2104,11 @@ class DeferredDiagnosticsEmitter
       for (auto *Init : Ctor->inits())
         this->Visit(Init->getInit());
     }
-
+    // A constructor initializes its bases and members, and so calls their
+    // constructors, in its initializer list rather than its body.
+    if (auto *Ctor = dyn_cast<CXXConstructorDecl>(FD))
+      for (CXXCtorInitializer *Init : Ctor->inits())
+        this->Visit(Init->getInit());
----------------
steffenlarsen wrote:

Ah, great! It has been dropped.

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


More information about the cfe-commits mailing list