diff --git a/lib/Interpreter/CppInterOp.cpp b/lib/Interpreter/CppInterOp.cpp index 48812e92b..f66d8b510 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))