Bugzilla – Bug 319562
[GMCS] generics icalls not found by gmcs [blocks IronPython 0.9.5]
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by vargaz@gmail.com 2005-11-17 18:46:04 MST ---- Test case: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< https://bugzilla.novell.com/show_bug.cgi?id=MONO2.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 https://bugzilla.novell.com/show_bug.cgi?id=MONO2.cs gmcs /r:https://bugzilla.novell.com/show_bug.cgi?id=MONO2.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. ---- Additional Comments From martin@ximian.com 2005-11-19 15:05:16 MST ---- I have working and fully tested patch on my hard disk; I'll commit on Monday morning (dinner is getting cold otherwise ...) This bug blocked bug(s) 76745. Unknown operating system unknown. Setting to default OS "Other".