[Mono-bugs] [Bug 47469][Min] New - MCS compiles syntactically-incorrect assignment code
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 7 Feb 2004 12:40:29 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by miguel@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=47469
--- shadow/47469 2004-02-07 12:40:29.000000000 -0500
+++ shadow/47469.tmp.21418 2004-02-07 12:40:29.000000000 -0500
@@ -0,0 +1,30 @@
+Bug#: 47469
+Product: Mono/Compilers
+Version: unspecified
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity: Unknown
+Priority: Minor
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: dick@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: MCS compiles syntactically-incorrect assignment code
+
+MCS (today's CVS) built this code from class/corlib/System/Array.cs without
+complaining:
+
+{
+ int iMid = (iMin + iMax) / 2;
+ object elt = array.GetValueImpl (iMid);
+
++ iCmp = comparer.Compare (value, elt);
+
+
+CSC said "System\Array.cs(429,1): error CS0131: The left-hand side of an
+assignment must be a variable, property or indexer" as expected.