svn path=/trunk/mcs/; revision=44477
(IsUnmanagedType): Avoid infloops by using
'unmanaged_enclosing_types' to talk with recursive invocations.
+2005-05-13 Martin Baulig <martin@ximian.com>
+
+ * statement.cs (Block.Resolve): Make the `bool unresolved' flag an
+ instance variable, not a local. Fix #74873.
+ (Block.ResolveUnreachable): Set it to true here.
+
2005-05-11 Duncan Mak <duncan@novell.com>
* cs-tokenizer.cs (get_cmd_arg): Check that 'c' is not -1 before
}
bool unreachable_shown;
+ bool unreachable;
public override bool Resolve (EmitContext ec)
{
// from the beginning of the function. The outer Resolve() that detected the unreachability is
// responsible for handling the situation.
//
- bool unreachable = false;
-
int statement_count = statements.Count;
for (int ix = 0; ix < statement_count; ix++){
Statement s = (Statement) statements [ix];
if (Implicit)
return Resolve (ec);
+ unreachable = true;
+
ec.StartFlowBranching (FlowBranching.BranchingType.Block, loc);
bool ok = Resolve (ec);
ec.KillFlowBranching ();