[Mono-bugs] [Bug 75772][Maj] New - GMCS throws exception when compiling code below

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Aug 10 13:59:07 EDT 2005

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 jan.oravec at 6com.sk.


--- shadow/75772	2005-08-10 13:59:07.000000000 -0400
+++ shadow/75772.tmp.8911	2005-08-10 13:59:07.000000000 -0400
@@ -0,0 +1,71 @@
+Bug#: 75772
+Product: Mono: Compilers
+Version: 1.1
+OS Details: Gentoo
+Status: NEW   
+Priority: Major
+Component: C#
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: jan.oravec at 6com.sk               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: GMCS throws exception when compiling code below
+Description of Problem:
+GMCS throws exception when compiling this code:
+public class Splay<T>
+  unsafe private struct Node
+  {
+    private Node *            left, right;
+    private Node *            parent;
+    private T                 data;
+  } 
+Steps to reproduce the problem:
+1. gmcs -unsafe splay.cs
+Actual Results:
+Unhandled Exception: Mono.CSharp.InternalErrorException: Couldn't create
+computed type Splay`1+Node<T>*
+in <0x003a8> Mono.CSharp.ComposedCast:DoResolveAsTypeStep
+(Mono.CSharp.EmitContext ec)
+in <0x00025> Mono.CSharp.TypeExpr:ResolveAsTypeStep
+(Mono.CSharp.EmitContext ec)
+in <0x0003b> Mono.CSharp.Expression:ResolveAsTypeTerminal
+(Mono.CSharp.EmitContext ec)
+in <0x00092> Mono.CSharp.MemberBase:get_MemberType ()
+in <0x0003b> Mono.CSharp.FieldMember:Define ()
+in <0x00030> Mono.CSharp.Field:Define ()
+in <0x00097>
+Mono.CSharp.TypeContainer+MemberCoreArrayList:DefineContainerMembers ()
+in <0x00021> Mono.CSharp.TypeContainer:DefineContainerMembers
+(Mono.CSharp.MemberCoreArrayList mcal)
+in <0x003e1> Mono.CSharp.TypeContainer:DoDefineMembers ()
+in <0x00039> Mono.CSharp.TypeContainer:DefineMembers
+(Mono.CSharp.TypeContainer container)
+in <0x0031f> Mono.CSharp.RootContext:PopulateTypes ()
+in <0x00d64> Mono.CSharp.Driver:MainDriver (System.String[] args)
+in <0x00025> Mono.CSharp.Driver:Main (System.String[] args)
+Expected Results:
+Compile successfully
+How often does this happen? 
+Additional Information:
+Using dev-lang/mono- on Gentoo Linux

More information about the mono-bugs mailing list