Author: raja
Date: 2005-04-08 07:18:16 -0400 (Fri, 08 Apr 2005)
New Revision: 42687

Modified:
   trunk/mcs/mcs/ChangeLog
   trunk/mcs/mcs/class.cs
Log:
Fix #74510.
* class.cs (OperatorArrayList.CheckPairedOperators): Skip
operators that had errors reported on them.


Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog     2005-04-08 11:01:33 UTC (rev 42686)
+++ trunk/mcs/mcs/ChangeLog     2005-04-08 11:18:16 UTC (rev 42687)
@@ -1,3 +1,9 @@
+2005-04-08  Raja R Harinath  <[EMAIL PROTECTED]>
+
+       Fix #74510.
+       * class.cs (OperatorArrayList.CheckPairedOperators): Skip
+       operators that had errors reported on them.
+
 2005-04-08  Marek Safar  <[EMAIL PROTECTED]>
 
        * attribute.cs (Attribute.IsValidArgumentType): Test valid named

Modified: trunk/mcs/mcs/class.cs
===================================================================
--- trunk/mcs/mcs/class.cs      2005-04-08 11:01:33 UTC (rev 42686)
+++ trunk/mcs/mcs/class.cs      2005-04-08 11:18:16 UTC (rev 42687)
@@ -278,7 +278,11 @@
                                // Register all the operators we care about.
                                foreach (Operator op in this){
                                        int reg = 0;
-                                       
+
+                                       // Skip erroneous code.
+                                       if (op.OperatorMethod == null)
+                                               continue;
+
                                        switch (op.OperatorType){
                                        case Operator.OpType.Equality:
                                                reg = 1;

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

Reply via email to