Commit b0a8f2fd authored by Kevin Modzelewski's avatar Kevin Modzelewski

Didn't dup the node here

I'm not sure that we need to do this at the expression-level --
I think we just have to do it at the statement level.
parent eb8019aa
......@@ -1813,7 +1813,7 @@ public:
AST_expr* handled_type = remapExpr(exc_handler->type);
AST_LangPrimitive* is_caught_here = new AST_LangPrimitive(AST_LangPrimitive::ISINSTANCE);
is_caught_here->args.push_back(exc_obj);
is_caught_here->args.push_back(_dup(exc_obj));
is_caught_here->args.push_back(handled_type);
is_caught_here->args.push_back(makeNum(1)); // flag: false_on_noncls
......
......@@ -91,3 +91,13 @@ def f13():
except Exception, e:
print repr(e.message)
f13()
def f14():
# Multiple non-bare except clauses:
try:
1/0
except ZeroDivisionError:
pass
except Exception:
pass
f14()
Markdown is supported
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