[Mono-bugs] [Bug 56452][Wis] Changed - extern method with no impl does not give error

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 4 Apr 2004 11:25:03 -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 bmaurer@users.sf.net.

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

--- shadow/56452	2004-04-04 09:28:01.000000000 -0400
+++ shadow/56452.tmp.27703	2004-04-04 11:25:03.000000000 -0400
@@ -3,21 +3,21 @@
 Version: unspecified
 OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
 Severity: Unknown
-Priority: Major
+Priority: Wishlist
 Component: C#
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: andrew@sobala.net               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
-Summary: mcs produces invalid IL code
+Summary: extern method with no impl does not give error
 
 Test case is at http://www.gnome.org/~aes/testcsharp-1.0.0.tar.gz
 
 Configure, make, and mono test.exe to run it.
 
 My results:
@@ -40,6 +40,26 @@
 error or crash rather than production of invalid IL code.
 
 This happens with mono 0.31, and CVS glib-sharp from Mar 31.
 
 ------- Additional Comments From andrew@sobala.net  2004-04-04 09:28 -------
 Sorry, that should be http://www.gnome.org/~aes/csharptest-1.0.0.tar.gz
+
+------- Additional Comments From bmaurer@users.sf.net  2004-04-04 11:25 -------
+The test case is alot simpler than this:
+
+public class Test {
+	static extern void does_not_work ();
+
+	static void Main ()
+	{
+		does_not_work ();		
+	}
+}
+
+
+The issue is that an `extern' implementation, unlike in C, requires
+some sort of hint as to what the impl is. An example is the DllImport
+attribute. If no such specification is given, it is a compile time error.
+
+There is probably a spec quote i could give...but dont know where i
+would find it.