diff --git a/lib/Interpreter/CppInterOp.cpp b/lib/Interpreter/CppInterOp.cpp index 48812e92b..826b23060 100644 --- a/lib/Interpreter/CppInterOp.cpp +++ b/lib/Interpreter/CppInterOp.cpp @@ -734,6 +734,9 @@ namespace Cpp { return; auto* CXXRD = dyn_cast(D); + #ifdef USE_CLING + cling::Interpreter::PushTransactionRAII RAII(&getInterp()); + #endif // USE_CLING getSema().ForceDeclarationOfImplicitMembers(CXXRD); for (Decl* DI : CXXRD->decls()) { if (auto* MD = dyn_cast(DI))