Author: martin
Date: 2005-04-19 09:45:44 -0400 (Tue, 19 Apr 2005)
New Revision: 43252

Modified:
   trunk/mcs/gmcs/ChangeLog
   trunk/mcs/gmcs/statement.cs
Log:
**** Merged r42554 from MCS ****


Modified: trunk/mcs/gmcs/ChangeLog
===================================================================
--- trunk/mcs/gmcs/ChangeLog    2005-04-19 13:44:31 UTC (rev 43251)
+++ trunk/mcs/gmcs/ChangeLog    2005-04-19 13:45:44 UTC (rev 43252)
@@ -1,3 +1,9 @@
+2005-04-05  Raja R Harinath  <[EMAIL PROTECTED]>
+
+       Fix #74041.
+       * statement.cs (Block.Resolve): Initialize 'unreachable' to false,
+       not 'unreachable_seen'.
+
 2005-04-04  Marek Safar  <[EMAIL PROTECTED]>
 
        * attribute.cs (Attribute.GetValue): Removed unused.

Modified: trunk/mcs/gmcs/statement.cs
===================================================================
--- trunk/mcs/gmcs/statement.cs 2005-04-19 13:44:31 UTC (rev 43251)
+++ trunk/mcs/gmcs/statement.cs 2005-04-19 13:45:44 UTC (rev 43252)
@@ -1931,7 +1931,13 @@
 
                        Report.Debug (4, "RESOLVE BLOCK", StartLocation, 
ec.CurrentBranching);
 
-                       bool unreachable = unreachable_shown;
+                       //
+                       // This flag is used to notate nested statements as 
unreachable from the beginning of this block.
+                       // For the purposes of this resolution, it doesn't 
matter that the whole block is unreachable 
+                       // 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++){

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to