diff --git a/core/dictgen/src/rootcling_impl.cxx b/core/dictgen/src/rootcling_impl.cxx index 0f94b42b5f19f..7b70c8f0e2c32 100644 --- a/core/dictgen/src/rootcling_impl.cxx +++ b/core/dictgen/src/rootcling_impl.cxx @@ -3409,6 +3409,9 @@ std::list RecordDecl2Headers(const clang::CXXRecordDecl &rcd, { std::list headers; + // We push a new transaction because we could deserialize decls here + cling::Interpreter::PushTransactionRAII RAII(&interp); + // Avoid infinite recursion if (!visitedDecls.insert(rcd.getCanonicalDecl()).second) return headers;