[Mono-bugs] [Bug 80735][Wis] Changed - mcs/gmcs fails to compile extern method with no pinvoke/icall attributes

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Feb 18 11:12:20 EST 2007

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 marek.safar at seznam.cz.


--- shadow/80735	2007-02-06 00:08:25.000000000 -0500
+++ shadow/80735.tmp.8615	2007-02-18 11:12:20.000000000 -0500
@@ -10,13 +10,12 @@
 Component: C#
 AssignedTo: rharinath at novell.com                            
 ReportedBy: joncham at gmail.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 Summary: mcs/gmcs fails to compile extern method with no pinvoke/icall attributes
 Please fill in this template when reporting a bug, unless you know what you
 are doing.
 Description of Problem: mcs/gmcs both fail to compile a method marked
 extern that has no pinvoke/icall attributes. csc gives warning while
@@ -56,6 +55,21 @@
 Test program
 ------- Additional Comments From joncham at gmail.com  2007-02-06 00:08 -------
 Forgot to note that mono asserts when trying to call the extern method
 with no attributes using the assembly built by csc.  
+------- Additional Comments From marek.safar at seznam.cz  2007-02-18 11:12 -------
+I think our behavior is correct. Why should we compile a program which
+then throw TypeLoadException ?
+Including Paulo as runtime should throw exception instead of asserting.
+This is output form Microsoft runtime
+Unhandled Exception: System.TypeLoadException: Could not load type
+'MonoEmbed' from assembly 'cs0626, Version=, Culture=neutral,
+PublicKeyToken=null' because the method 'gimme2' has no implementation
+(no RVA).
+   at Class1.Main(String[] args)

More information about the mono-bugs mailing list