https://bugzilla.novell.com/show_bug.cgi?id=402379
Summary: gmcs crash on invalid code Product: Mono: Compilers Version: 1.9.0 Platform: Other OS/Version: Other Status: NEW Severity: Minor Priority: P5 - None Component: C# AssignedTo: mono-bugs@lists.ximian.com ReportedBy: [EMAIL PROTECTED] QAContact: mono-bugs@lists.ximian.com Found By: --- Created an attachment (id=223494) --> (https://bugzilla.novell.com/attachment.cgi?id=223494) Test Case I made a typo and hit this. The attached test case should not compile, but it should not crash gmcs. Stacktrace: test14.cs(10,80): error CS0144: Cannot create an instance of the abstract class or interface `System.Type' C:\PROGRA~2\MONO-1~1.1\lib\mono\2.0\mscorlib.dll (Location of the symbol related to previous error) test14.cs(10,92): error CS1922: A field or property `System.Type' cannot be initialized with a collection object initializer because type `System.Type' does not implement `System.Collections.IEnumerable' interface Unhandled Exception: Mono.CSharp.InternalErrorException: test14.cs(10,80): Mono.CSharp.NewInitialize ExprClass is Invalid after resolve at Mono.CSharp.Expression.get_ExprClassToResolveFlags () [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.Argument.Resolve (Mono.CSharp.EmitContext ec, Location loc) [0x00000] at Mono.CSharp.New.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.Assign.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.ExpressionStatement.ResolveStatement (Mono.CSharp.EmitContext ec) [0x00000] at Mono.CSharp.StatementExpression.Resolve (Mono.CSharp.EmitContext ec) [0x00000] at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x00000] at Mono.CSharp.EmitContext.ResolveTopBlock (Mono.CSharp.EmitContext anonymous_method_host, Mono.CSharp.ToplevelBlock block, Mono.CSharp.Parameters ip, IMethodData md, System.Boolean& unreachable) [0x00000] -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - mono-bugs@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-bugs