[Mono-bugs] [Bug 45127][Blo] New - weird order dependent compilation error

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Thu, 19 Jun 2003 10:40:38 -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 lupus@ximian.com.

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

--- shadow/45127	Thu Jun 19 10:40:38 2003
+++ shadow/45127.tmp.28637	Thu Jun 19 10:40:38 2003
@@ -0,0 +1,37 @@
+Bug#: 45127
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: lupus@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: weird order dependent compilation error
+
+The following program is not compiled by mcs:
+using System.Security.Cryptography;
+
+class T {
+        static void Main () {
+                RSA rsa = RSA.Create ();
+        }
+}
+The error message is:
+rsa-mcs-bug.cs(5) error CS0029: Cannot convert implicitly from
+`System.Security.Cryptography.AsymmetricAlgorithm' to
+`System.Security.Cryptography.RSA'
+
+Note: mcs won't compile the program when running on the MS runtime either.
+This is apparently triggered by the last change to icall.c that returns the
+methods in the GetMethods() call in the same order as they are found in the
+metadata (to match the MS behaviour).
+The issue is that it seems to pick the Create function in the base class of
+RSA instead of the one in the RSA class.