[Mono-bugs] [Bug 60316][Maj] Changed - MCS 0.96 fails to emit a foreach on a struct collection property

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 17 Jun 2004 01:19:28 -0400 (EDT)


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=60316

--- shadow/60316	2004-06-16 19:49:06.000000000 -0400
+++ shadow/60316.tmp.6930	2004-06-17 01:19:28.000000000 -0400
@@ -1,22 +1,22 @@
 Bug#: 60316
 Product: Mono: Compilers
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: Linux Mandrake 10.0 Official
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Major
 Component: C#
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: dge@softec.st               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
-Cc: 
+Cc: bmaurer@users.sf.net,martin@ximian.com
 Summary: MCS 0.96 fails to emit a foreach on a struct collection property 
 
 MCS 0.96 fails to emit a foreach statement. It fails when the collection is
 a struct return by value from a property. Same code are correctly compiled
 by CSC. Note that the sample provided here has no sense, but of course, I
 have stumbled on this in a real and useful situation.
@@ -108,6 +108,9 @@
 
 Additional Information:
 Replacing the struct ACollection by a class and everything works perfectly.
 Alternatively, storing a copy of the property in a temporary variable of
 main and use it in the foreach also solve the problem.
 This is not a regression, already present in version 0.29 and probably before.
+
+------- Additional Comments From miguel@ximian.com  2004-06-17 01:19 -------
+Am CCing Martin and Ben who have looked at this in the past.