[Mono-bugs] [Bug 80358][Nor] Changed - [GMCS] Compiler crashes with certain type of generic partial class

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Dec 26 08:51:24 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 frederik.carlier at ugent.be.


--- shadow/80358	2006-12-25 19:08:52.000000000 -0500
+++ shadow/80358.tmp.21049	2006-12-26 08:51:24.000000000 -0500
@@ -96,6 +96,57 @@
 Additional Information:
 This example is based on code generated by Visual Studio that compiles file
 under .NET.
 ------- Additional Comments From frederik.carlier at ugent.be  2006-12-25 19:08 -------
 This actually blocks my migration to Mono.
+------- Additional Comments From frederik.carlier at ugent.be  2006-12-26 08:51 -------
+I just reproduced this bug on SuSe Linux 9.2:
+frederik at inwdesk1:~/monobug> cat /etc/SuSE-release 
+SuSE Linux 9.2 (i586)
+VERSION = 9.2
+frederik at inwdesk1:~/monobug> mono --version
+Mono JIT compiler version, (C) 2002-2006 Novell, Inc and
+Contributors. www.mono-project.com
+        TLS:           normal
+        GC:            Included Boehm (with typed GC)
+        SIGSEGV:       normal
+        Disabled:      none
+frederik at inwdesk1:~/monobug> gmcs --version
+Mono C# compiler version
+frederik at inwdesk1:~/monobug> gmcs gpartial.cs 
+gpartial.cs(2,14): error CS0234: The type or namespace name `Windows'
+does not exist in the namespace `System'. Are you missing an assembly
+gpartial.cs(2,1): error CS0246: The type or namespace name
+`Windows.Forms' could not be found. Are you missing a using directive
+or an assembly reference?
+Unhandled Exception: System.InvalidOperationException: Operation is
+not valid due to the current state of the object
+  at System.Type.GetGenericTypeDefinition () [0x00000] 
+  at System.Reflection.Emit.TypeBuilder.GetGenericTypeDefinition ()
+  at Mono.CSharp.TypeManager.IsEqual (System.Type a, System.Type b)
+  at Mono.CSharp.TypeManager.IsNestedChildOf (System.Type type,
+System.Type parent) [0x00000] 
+  at Mono.CSharp.SimpleName.IsNestedChild (System.Type t, System.Type
+parent) [0x00000] 
+  at Mono.CSharp.SimpleName.ResolveNested (IResolveContext ec,
+System.Type t) [0x00000] 
+  at Mono.CSharp.SimpleName.ResolveAsTypeStep (IResolveContext ec,
+Boolean silent) [0x00000] 
+  at Mono.CSharp.Expression.ResolveAsBaseTerminal (IResolveContext ec,
+Boolean silent) [0x00000] 
+  at Mono.CSharp.Expression.ResolveAsTypeTerminal (IResolveContext ec,
+Boolean silent) [0x00000] 
+  at Mono.CSharp.Delegate.DefineType () [0x00000] 
+  at Mono.CSharp.TypeContainer.DefineNestedTypes () [0x00000] 
+  at Mono.CSharp.TypeContainer.DefineType () [0x00000] 
+  at Mono.CSharp.Class.DefineType () [0x00000] 
+  at Mono.CSharp.RootContext.ResolveTree () [0x00000] 
+  at Mono.CSharp.Driver.MainDriver (System.String[] args) [0x00000] 
+  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] 

More information about the mono-bugs mailing list