[Mono-bugs] [Bug 81815][Nor] New - mcs allows covariance from reference to value types

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jun 6 09:50:16 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 bzximian.3.crazycomputers at neverbox.com.

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

--- shadow/81815	2007-06-06 09:50:16.000000000 -0400
+++ shadow/81815.tmp.23338	2007-06-06 09:50:16.000000000 -0400
@@ -0,0 +1,34 @@
+Bug#: 81815
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: Debian Lenny
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: bzximian.3.crazycomputers at neverbox.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs allows covariance from reference to value types
+
+Steps to reproduce the problem:
+1. Compile the testcase.
+2. ???
+3. Profit.
+
+Actual Results:
+Compilation succeeds and the program blows up when run, presumably because
+the int returned from int.Parse was stored as an address to a managed object.
+
+Expected Results:
+MS csc gives CS0407.  mcs should probably do something similar.
+
+Additional Information:
+
+The binary produces the same result when run on the MS runtime.  Unless the
+location is not trusted, and then a VerificationException is thrown.


More information about the mono-bugs mailing list