[Mono-bugs] [Bug 77923][Nor] New - Anonymous method: CS1686 is not
reported.
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun Mar 26 10:52:20 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 marek.safar at seznam.cz.
http://bugzilla.ximian.com/show_bug.cgi?id=77923
--- shadow/77923 2006-03-26 10:52:20.000000000 -0500
+++ shadow/77923.tmp.18776 2006-03-26 10:52:20.000000000 -0500
@@ -0,0 +1,52 @@
+Bug#: 77923
+Product: Mono: Compilers
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: marek.safar at seznam.cz
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Anonymous method: CS1686 is not reported.
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1. compile with -unsafe
+2.
+
+delegate void D ();
+
+unsafe class X {
+ public static D T (int a)
+ {
+ return delegate {
+ int *x = &a;
+ };
+ }
+}
+
+Actual Results:
+
+No error.
+
+Expected Results:
+
+-.cs(7,13): error CS1686: Local `a' or its members cannot have their
+address taken and be used inside an anonymous method block
+-.cs(7,14): (Location of symbol related to previous error)
+
+How often does this happen?
+
+
+Additional Information:
More information about the mono-bugs
mailing list