[Mono-bugs] [Bug 80455][Nor] Changed - mcs doesn't set the correct flags for pinvoke generic method

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jan 11 06:46:15 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 lupus at ximian.com.


--- shadow/80455	2007-01-10 15:41:54.000000000 -0500
+++ shadow/80455.tmp.22905	2007-01-11 06:46:15.000000000 -0500
@@ -1,23 +1,23 @@
 Bug#: 80455
-Product: Mono: Runtime
+Product: Mono: Compilers
 Version: 1.2
 OS: unknown
 OS Details: 
 Status: NEW   
 Severity: Unknown
 Priority: Normal
-Component: misc
+Component: C#
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: miguel at ximian.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
-Summary: Reflection does not allow external generic method
+Summary: mcs doesn't set the correct flags for pinvoke generic method
 The following crashes gmcs:
 mono$ gmcs /tmp/a.cs
 /tmp/a.cs(6,22): warning CS0169: The private method `A.Do<T>()' is never used
 In type: A
@@ -51,6 +51,10 @@
 I think the later is a silly limitation, and could be a "value add" of
 Mono, but the "value add" is clearly at the bottom of the priority list.
 The only reason for filing this bug is that the compiler should not
 crash when generating the above signature. 
+------- Additional Comments From lupus at ximian.com  2007-01-11 06:46 -------
+The issue is that mcs doesn't set the pinvokeimpl flag for the method,
+so reflection can't know this shouldn't have a body.

More information about the mono-bugs mailing list