[Mono-bugs] [Bug 77491][Maj] New - gmcs crashes on anonymous
methods referencing outer variables
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Feb 7 07:53:39 EST 2006
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 flipper98 at gmx.net.
http://bugzilla.ximian.com/show_bug.cgi?id=77491
--- shadow/77491 2006-02-07 07:53:39.000000000 -0500
+++ shadow/77491.tmp.15941 2006-02-07 07:53:39.000000000 -0500
@@ -0,0 +1,68 @@
+Bug#: 77491
+Product: Mono: Compilers
+Version: 1.1
+OS: other
+OS Details: fedora core 4
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: flipper98 at gmx.net
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: gmcs crashes on anonymous methods referencing outer variables
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+gmcs crashes on anonymous methods referencing outer variables.
+
+Steps to reproduce the problem:
+
+try to compile this senseless example code:
+
+using System;
+using System.Threading;
+
+namespace ConsoleApplication1
+{
+ class Program
+ {
+ private bool m_flag = true;
+ public Program()
+ {
+ new Thread(delegate()
+ {
+
+ long a = 0;
+ if (m_flag)
+ {
+ new Thread(delegate()
+ {
+ a++;
+ });
+ }
+ }).Start();
+ }
+
+ static void Main(string[] args)
+ {
+ new Program();
+ }
+ }
+}
+
+Actual Results:
+bang!
+
+Expected Results:
+successful compilation
+
+How often does this happen?
+always
+
+Additional Information:
More information about the mono-bugs
mailing list