Skip to content
Snippets Groups Projects
Commit 7197a976 authored by Benjamin Cumming's avatar Benjamin Cumming
Browse files

Fix issue #164

Disambiguate e symbol in statements like the following
  for (auto& e: e->terms())
This caused GCC 5 to give an error.
parent 0d1e0c00
No related branches found
No related tags found
No related merge requests found
......@@ -29,9 +29,9 @@ public:
}
void visit(CallExpression* e) override {
for (auto& e: e->args()) {
for (auto& expr: e->args()) {
if (found()) return;
e->accept(this);
expr->accept(this);
}
}
......@@ -62,16 +62,16 @@ public:
}
void visit(StoichExpression* e) override {
for (auto& e: e->terms()) {
for (auto& expr: e->terms()) {
if (found()) return;
e->accept(this);
expr->accept(this);
}
}
void visit(BlockExpression* e) override {
for (auto& e: e->statements()) {
for (auto& expr: e->statements()) {
if (found()) return;
e->accept(this);
expr->accept(this);
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment