We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d85c4b6 commit 2318961Copy full SHA for 2318961
src/lc/clang_ast_to_asr.cpp
@@ -1869,15 +1869,19 @@ class ClangASTtoASRVisitor: public clang::RecursiveASTVisitor<ClangASTtoASRVisit
1869
}
1870
1871
bool TraverseCompoundStmt(clang::CompoundStmt *x) {
1872
+ std::map<std::string, std::string> alias;
1873
+ scopes.push_back(alias);
1874
for (auto &s : x->body()) {
1875
bool is_stmt_created_ = is_stmt_created;
1876
is_stmt_created = false;
1877
TraverseStmt(s);
1878
if( is_stmt_created ) {
1879
current_body->push_back(al, ASRUtils::STMT(tmp.get()));
1880
+ is_stmt_created = false;
1881
- is_stmt_created_ = is_stmt_created;
1882
+ is_stmt_created = is_stmt_created_;
1883
1884
+ scopes.pop_back();
1885
return true;
1886
1887
0 commit comments