Author: marek
Date: 2006-10-06 06:36:24 -0400 (Fri, 06 Oct 2006)
New Revision: 66341

Modified:
   trunk/mcs/mcs/ChangeLog
   trunk/mcs/mcs/cfold.cs
Log:
2006-10-06  Marek Safar  <[EMAIL PROTECTED]>

        * cfold.cs (ConstantFold.BinaryFold): Report an error when the 
conversion
        does not exist.

Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog     2006-10-06 09:26:14 UTC (rev 66340)
+++ trunk/mcs/mcs/ChangeLog     2006-10-06 10:36:24 UTC (rev 66341)
@@ -1,3 +1,8 @@
+2006-10-06  Marek Safar  <[EMAIL PROTECTED]>
+
+       * cfold.cs (ConstantFold.BinaryFold): Report an error when the 
conversion
+       does not exist.
+
 2006-10-06  Raja R Harinath  <[EMAIL PROTECTED]>
 
        Fix #79584

Modified: trunk/mcs/mcs/cfold.cs
===================================================================
--- trunk/mcs/mcs/cfold.cs      2006-10-06 09:26:14 UTC (rev 66340)
+++ trunk/mcs/mcs/cfold.cs      2006-10-06 10:36:24 UTC (rev 66341)
@@ -219,9 +219,8 @@
                                        return new BoolConstant (lv == rv, 
left.Location);
                                case Binary.Operator.Inequality:
                                        return new BoolConstant (lv != rv, 
left.Location);
-                               default:
-                                       throw new InternalErrorException 
("Invalid operator on booleans: " + oper);
                                }
+                               return null;
                        }
 
                        Type wrap_as;

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

Reply via email to