[Mono-bugs] [Bug 77368][Nor] New -
ves_icall_MonoType_get_DeclaringMethod abort during compilation
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Jan 26 11:35:18 EST 2006
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 horst.reiterer at mind-breeze.com.
http://bugzilla.ximian.com/show_bug.cgi?id=77368
--- shadow/77368 2006-01-26 11:35:18.000000000 -0500
+++ shadow/77368.tmp.15467 2006-01-26 11:35:18.000000000 -0500
@@ -0,0 +1,82 @@
+Bug#: 77368
+Product: Mono: Runtime
+Version: 1.1
+OS: other
+OS Details: Red Hat Enterprise Linux
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: horst.reiterer at mind-breeze.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: ves_icall_MonoType_get_DeclaringMethod abort during compilation
+
+The following testcase fails to compile with Mono 1.1.13's gmcs, the
+runtime aborts.
+MethodClass defines a method 'Get' with an out parameter.
+GenericMethodClass provides a similar method, it is generic however.
+Invoking 'Get' on an instance of GenericMethodClass (FAILURE must be
+defined) causes the runtime to abort. If the target method is not generic,
+compilation succeeds. Compiling the same testcase with Microsoft's csc
+succeeds aswell.
+
+using System;
+
+public class TestClass
+{
+}
+
+public class MethodClass
+{
+ public void Get(out TestClass test)
+ {
+ test = new TestClass();
+ }
+};
+
+public class GenericMethodClass
+{
+ public void Get<T>(out T test) where T : new()
+ {
+ test = new T();
+ }
+};
+
+public class Test
+{
+ public static void Main(string[] args)
+ {
+ TestClass unassigned;
+
+#if FAILURE
+ GenericMethodClass cl = new GenericMethodClass();
+#else
+ MethodClass cl = new MethodClass();
+#endif
+
+ cl.Get(out unassigned);
+ }
+};
+
+Steps to reproduce the problem:
+1. gmcs -define:FAILURE testcase.cs
+
+Actual Results:
+
+** ERROR **: file icall.c: line 2394
+(ves_icall_MonoType_get_DeclaringMethod): assertion failed: (method)
+aborting...
+Aborted
+
+Expected Results:
+
+Successful compilation
+
+How often does this happen?
+
+100 out of 100 times
More information about the mono-bugs
mailing list