[Mono-bugs] [Bug 80735][Wis] New - mcs/gmcs fails to compile extern method with no pinvoke/icall attributes
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Feb 6 00:06:52 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 joncham at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80735
--- shadow/80735 2007-02-06 00:06:52.000000000 -0500
+++ shadow/80735.tmp.11404 2007-02-06 00:06:52.000000000 -0500
@@ -0,0 +1,52 @@
+Bug#: 80735
+Product: Mono: Compilers
+Version: 1.2
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: joncham at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+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
+mcs/gmcs gives error.
+
+
+Steps to reproduce the problem:
+1. Try to compile attached file.
+2.
+3.
+
+Actual Results:
+$ gmcs Program.cs
+Program.cs(10,27): error CS0626: `MonoEmbed.gimme2()' is marked as an
+external but has no DllImport attribute. Consider adding a DllImport
+attribute to specify the external implementation
+Compilation failed: 1 error(s), 0 warnings
+
+Expected Results:
+From csc 2.0:
+
+C:\cygwin\home\HP_Administrator\com_tester\Program.cs(10,27): warning
+CS0626: Method, operator, or accessor 'MonoEmbed.gimme2()' is marked
+external and has no attributes on it. Consider adding a DllImport attribute
+to specify the external implementation.
+
+Compile complete -- 0 errors, 1 warnings
+
+How often does this happen?
+Everytime
+
+Additional Information:
+Again, note csc gives warning while mcs/gmcs gives error.
More information about the mono-bugs
mailing list