[Mono-bugs] [Bug 76738][Nor] New - [GMCS] generics icalls not found by gmcs [blocks IronPython 0.9.5]

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Nov 17 18:46:04 EST 2005


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 vargaz at gmail.com.

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

--- shadow/76738	2005-11-17 18:46:04.000000000 -0500
+++ shadow/76738.tmp.2712	2005-11-17 18:46:04.000000000 -0500
@@ -0,0 +1,56 @@
+Bug#: 76738
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: vargaz at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [GMCS] generics icalls not found by gmcs [blocks IronPython 0.9.5]
+
+Test case:
+
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< bug2.cs <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+using System;
+using System.Collections;
+using System.Runtime.CompilerServices;
+
+public class Interlocked {
+
+	[MethodImplAttribute(MethodImplOptions.InternalCall)]
+	public extern static T CompareExchange<T> (ref T location, T value, T
+comparand);
+ }
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< bug.cs <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+using System;
+using System.Collections;
+using System.Runtime.InteropServices;
+using System.Runtime.CompilerServices;
+
+public class Tests {
+
+	static void Main () {
+		Tests t = new Tests ();
+
+		Interlocked.CompareExchange<Tests> (ref t, t, t);
+	}
+ }
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+
+Compile with:
+gmcs /target:library bug2.cs
+gmcs /r:bug2.dll bug.cs
+
+Result:
+bug.cs(12,3): error CS0308: The non-generic method `CompareExchange' cannot
+be used with type arguments
+
+csc compiles this just fine.


More information about the mono-bugs mailing list