[Mono-bugs] [Bug 77615][Min] New - Error compiling
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Feb 21 23:48:47 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 paulomorfeo at portugalmail.pt.
http://bugzilla.ximian.com/show_bug.cgi?id=77615
--- shadow/77615 2006-02-21 23:48:47.000000000 -0500
+++ shadow/77615.tmp.18824 2006-02-21 23:48:47.000000000 -0500
@@ -0,0 +1,78 @@
+Bug#: 77615
+Product: Mono: Compilers
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Minor
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: PauloMorfeo at Portugalmail.pt
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Error compiling
+
+[code]
+using System;
+using Gtk;
+
+class MainClass
+{
+ public static void Main(string[] args)
+ {
+ TreeModel modelo;
+
+ modelo= new TreeModel ();
+ }
+}
+[/code]
+
+Results in:
+
+[output]
+Building Solution Tete
+
+Building Project: Tete Configuration: Debug
+Performing main compilation...
+Exception caught by the compiler while compiling:
+ Block that caused the problem begin at: /home/jogos/Tete/Main.cs(7,21):
+ Block being compiled:
+[/home/jogos/Tete/Main.cs(8,2):,/home/jogos/Tete/Main.cs(12,2):]
+System.IndexOutOfRangeException: Array index is out of range.
+
+
+Unhandled Exception: System.IndexOutOfRangeException: Array index is out of
+range.
+in <0x00040> Mono.CSharp.AttributeTester:GetCoClassAttribute (System.Type type)
+in <0x0003b> Mono.CSharp.New:CheckComImport (Mono.CSharp.EmitContext ec)
+in <0x0024a> Mono.CSharp.New:DoResolve (Mono.CSharp.EmitContext ec)
+in <0x000e3> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext ec,
+ResolveFlags flags)
+in <0x00012> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext ec)
+in <0x000d7> Mono.CSharp.Assign:DoResolve (Mono.CSharp.EmitContext ec)
+in <0x000e3> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext ec,
+ResolveFlags flags)
+in <0x00012> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext ec)
+in <0x00013> Mono.CSharp.ExpressionStatement:ResolveStatement
+(Mono.CSharp.EmitContext ec)
+in <0x0001f> Mono.CSharp.StatementExpression:Resolve
+(Mono.CSharp.EmitContext ec)
+in <0x001d9> Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext ec)
+in <0x00122> Mono.CSharp.EmitContext:ResolveTopBlock
+(Mono.CSharp.EmitContext anonymous_method_host, Mono.CSharp.ToplevelBlock
+block, Mono.CSharp.Parameters ip, IMethodData md, System.Boolean unreachable)
+
+
+Build complete -- 4 errors, 0 warnings
+
+---------------------- Done ----------------------
+
+Build: 4 errors, 0 warnings.
+[/output]
+
+That code should not work(?) but it seems to me that the compiler fails
+where it should give some feedback.
More information about the mono-bugs
mailing list