From b4155efdeb3df35080e3e14ab7a618de97164eea Mon Sep 17 00:00:00 2001 From: Amlal Date: Fri, 9 May 2025 13:17:23 +0200 Subject: dev(cxxdrv): figured out where the segfault comes from, probably the call to Compile who causes the issue. Signed-off-by: Amlal --- dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'dev/LibCompiler/src') diff --git a/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc b/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc index 344622e..c0dc281 100644 --- a/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc +++ b/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc @@ -220,11 +220,9 @@ Boolean CompilerFrontendCPlusPlus::Compile(std::string text, std::string file) { } } - auto syntax_tree = LibCompiler::SyntaxLeafList::SyntaxLeaf(); + static LibCompiler::SyntaxLeafList::SyntaxLeaf syntax_tree; for (auto& keyword : keywords_list) { - kStdOut << keyword.second; - switch (keyword.first.keyword_kind) { case LibCompiler::KeywordKind::kKeywordKindClass: { ++kOnClassScope; -- cgit v1.2.3