[Mono-bugs] [Bug 80925][Nor] New - exception on compilation error

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Feb 21 16:09:39 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 toshok at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=80925

--- shadow/80925	2007-02-21 16:09:39.000000000 -0500
+++ shadow/80925.tmp.19373	2007-02-21 16:09:39.000000000 -0500
@@ -0,0 +1,50 @@
+Bug#: 80925
+Product: Mono: Compilers
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: toshok at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: exception on compilation error
+
+compiling the attached program gives me this:
+
+when I correct the first error (by replacing Control.Add with Controls.Add)
+the exception goes away.
+
+$ mcs -pkg:dotnet button.cs
+button.cs(13,17): error CS0117: `System.Windows.Forms.Control' does not
+contain a definition for `Add'
+button.cs(9,23): error CS0143: The type `Foo.<>c__CompilerGenerated1' has
+no constructors defined
+
+Unhandled Exception: Mono.CSharp.InternalErrorException: Internal error
+  at Mono.CSharp.ScopeInfo+ScopeInitializer.DoResolveInternal
+(Mono.CSharp.EmitContext ec) [0x00000]
+  at Mono.CSharp.RootScopeInfo+RootScopeInitializer.DoResolveInternal
+(Mono.CSharp.EmitContext ec) [0x00000]
+  at Mono.CSharp.ScopeInfo+ScopeInitializer.DoResolve
+(Mono.CSharp.EmitContext ec) [0x00000]
+  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec,
+ResolveFlags flags) [0x00000]
+  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec) [0x00000]
+  at Mono.CSharp.ScopeInfo.GetScopeInitializer (Mono.CSharp.EmitContext ec)
+[0x00000]
+  at Mono.CSharp.Block.EmitMeta (Mono.CSharp.EmitContext ec) [0x00000]
+  at Mono.CSharp.ToplevelBlock.EmitMeta (Mono.CSharp.EmitContext ec) [0x00000]
+  at Mono.CSharp.EmitContext.EmitMeta (Mono.CSharp.ToplevelBlock b) [0x00000]
+  at Mono.CSharp.Constructor.Emit () [0x00000]
+  at Mono.CSharp.TypeContainer.EmitConstructors () [0x00000]
+  at Mono.CSharp.TypeContainer.EmitType () [0x00000]
+  at Mono.CSharp.RootContext.EmitCode () [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