[clang] [clang] Handle constructor closures with consteval default args (PR #203554)

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 22 05:02:03 PDT 2026


================
@@ -2334,6 +2334,14 @@ void ASTDeclReader::VisitCXXConstructorDecl(CXXConstructorDecl *D) {
         InheritedConstructor(Shadow, Ctor);
   }
 
+  if (unsigned NumArgs = Record.readUInt32()) {
----------------
zmodem wrote:

It's covered by clang/test/PCH/dllexport-default-arg-closure.cpp

I realize that's not a module, but it covers the serialization/deserialization mechanism. Happy to add a module case as well if you think it's needed.

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


More information about the cfe-commits mailing list