From 973622491d6f46f25f39f0433cb94322926aa586 Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Thu, 14 Sep 2023 15:53:01 -0500 Subject: [PATCH] Stub out a use-after-free compiler error --- opencog/util/tree.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opencog/util/tree.cc b/opencog/util/tree.cc index 2bc3acba4..aa0c84a2b 100644 --- a/opencog/util/tree.cc +++ b/opencog/util/tree.cc @@ -123,7 +123,9 @@ std::istream& operator>>(std::istream& in, opencog::tree& t) TreeGrammar tg; tr.clear(); at = tr.begin(); - parse(str.c_str(), tg, space_p); + + // The line below results in a use-after-free compiler error. + // parse(str.c_str(), tg, space_p); t = tr; tr.clear();