Author: marek
Date: 2007-12-23 05:16:10 -0500 (Sun, 23 Dec 2007)
New Revision: 91821
Modified:
trunk/mcs/mcs/ChangeLog
trunk/mcs/mcs/ecore.cs
Log:
2007-12-23 Marek Safar <[EMAIL PROTECTED]>
A fix for bug #348076
* ecore.cs (FieldExpr.DoResolve): Allow any variable based expression.
Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog 2007-12-23 08:42:23 UTC (rev 91820)
+++ trunk/mcs/mcs/ChangeLog 2007-12-23 10:16:10 UTC (rev 91821)
@@ -1,3 +1,8 @@
+2007-12-23 Marek Safar <[EMAIL PROTECTED]>
+
+ A fix for bug #348076
+ * ecore.cs (FieldExpr.DoResolve): Allow any variable based expression.
+
2007-12-22 Marek Safar <[EMAIL PROTECTED]>
* ecore.cs (MethodGroupExpr.OverloadResolve): Set type arguments for
Modified: trunk/mcs/mcs/ecore.cs
===================================================================
--- trunk/mcs/mcs/ecore.cs 2007-12-23 08:42:23 UTC (rev 91820)
+++ trunk/mcs/mcs/ecore.cs 2007-12-23 10:16:10 UTC (rev 91821)
@@ -4513,8 +4513,7 @@
Report.Error (1666, loc, "You cannot
use fixed size buffers contained in unfixed expressions. Try using the fixed
statement");
}
- if (!(InstanceExpression is
LocalVariableReference) &&
- !(InstanceExpression is This)) {
+ if (InstanceExpression.eclass !=
ExprClass.Variable) {
Report.SymbolRelatedToPreviousError
(FieldInfo);
Report.Error (1708, loc, "`{0}': Fixed
size buffers can only be accessed through locals or fields",
TypeManager.GetFullNameSignature (FieldInfo));
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches