[Mono-bugs] [Bug 61593][Wis] New - mcs -> System.StackOverflowException on Enum[] iteration

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 15 Jul 2004 05:30:25 -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 guy@langston.org.za.

http://bugzilla.ximian.com/show_bug.cgi?id=61593

--- shadow/61593	2004-07-15 05:30:25.000000000 -0400
+++ shadow/61593.tmp.2299	2004-07-15 05:30:25.000000000 -0400
@@ -0,0 +1,65 @@
+Bug#: 61593
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: Windows XP Pro (m$ .NET runtime not installed)
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: guy@langston.org.za               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs -> System.StackOverflowException on Enum[] iteration
+
+Description of Problem:
+mcs -> System.StackOverflowException on Enum[] iteration
+
+Confirmed by:
+Marek Safar [marek.safar@seznam.cz] on mono-devel-list@lists.ximian.com Thu
+2004/07/15 10:35 AM
+
+Steps to reproduce the problem:
+1. > mcs -target:library -out:test.dll amiabug.cs
+
+AmIABug.cs
+-----
+using System;
+namespace AppFramework.Util
+{
+   public class Logic
+   {
+       static public bool EnumInSet(Enum anEnum, Enum[] checkSet)
+       {
+           foreach(Enum aVal in checkSet)
+           {
+               if (aVal == anEnum)
+               {
+                   return true;
+               }
+           }
+           return false;
+       }
+   }
+}
+ 
+
+Actual Results:
+mcs gives not Console output end execution ends
+
+Expected Results:
+EITHER: mcs gives compilation errors/warnings
+OR: mcs gives and error message "Internal Error/Exception - Report to
+Mono-Project.com"
+
+How often does this happen? 
+Every Compilation attempt
+
+Additional Information:
+Windows.
+Mono-1 package.
+Microsoft .NET runtime not installed.