[Mono-bugs] [Bug 81259][Wis] New - Problem with "internal" access modifier.
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Mar 28 20:47:02 EDT 2007
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 patperry at stanford.edu.
http://bugzilla.ximian.com/show_bug.cgi?id=81259
--- shadow/81259 2007-03-28 19:47:02.000000000 -0500
+++ shadow/81259.tmp.8089 2007-03-28 19:47:02.000000000 -0500
@@ -0,0 +1,51 @@
+Bug#: 81259
+Product: Mono: Compilers
+Version: 1.2
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: patperry at stanford.edu
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Problem with "internal" access modifier.
+
+Description of Problem:
+
+gmcs compiles the attached code with no warnings, but when run, a
+System.InvalidProgramException : Invalid IL code ...
+
+When I add "internal" to the definition of a method, the problem goes away.
+
+Steps to duplicate the bug.
+1. Download and extract http://stat.stanford.edu/~patperry/array.tar.gz
+2. Run "nant test" in trunk
+
+Actual Results:
+throws a System.InvalidProgramException
+
+Expected Results:
+should run with no errors
+
+
+How often does this happen?
+every time
+
+Additional Information:
+
+The problem function is in src/Array.cs and is called UnsafeSetValue,
+defined at line 399. The signature is:
+
+protected virtual void UnsafeSetValue (T value, int index)
+
+when the signature is changed to
+
+internal protected virtual void UnsafeSetValue (T value, int index)
+
+the bug goes away.
More information about the mono-bugs
mailing list