hans added a comment. Please take a look.
================ Comment at: clang/lib/Sema/SemaDecl.cpp:13996 } + if (auto *Ctor = dyn_cast<CXXConstructorDecl>(FD)) { ---------------- I was searching for the right place to do this, looking mostly in the sema template code, but ended up here as an explicit specialization really works out a lot like a function definition. ================ Comment at: clang/test/CodeGenCXX/dllexport-ctor-closure.cpp:53 +template <typename T> struct __declspec(dllexport) ExportedTemplateWithClosure { + ExportedTemplateWithClosure(int x = sizeof(T)) {} ---------------- This should also work when dllexport is on the member function rather than the class, but it turns out we currently don't export the function in that case; that's a bug I want to handle separately. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D91089/new/ https://reviews.llvm.org/D91089 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits