Bug 319562 (MONO76738) - [GMCS] generics icalls not found by gmcs [blocks IronPython 0.9.5]
Summary: [GMCS] generics icalls not found by gmcs [blocks IronPython 0.9.5]
Status: RESOLVED FIXED
Alias: MONO76738
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-18 01:46 UTC by Forgotten User vxPDddArjq
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:38:22 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".