[Mono-bugs] [Bug 73052][Nor] New - Crash when reporting an error.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 25 Feb 2005 22:32:15 -0500 (EST)


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 miguel@ximian.com.

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

--- shadow/73052	2005-02-25 22:32:15.000000000 -0500
+++ shadow/73052.tmp.6368	2005-02-25 22:32:15.000000000 -0500
@@ -0,0 +1,61 @@
+Bug#: 73052
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: miguel@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Crash when reporting an error.
+
+The compiler crashes when compiling the following sample:
+
+public class A {
+
+	public Blah [] B {
+		get { return null; }
+	}
+
+	static void Main () {}
+}
+
+class Blah {
+	
+}
+
+The result is:
+
+Unhandled Exception: System.NotSupportedException: The invoked member is
+not supported in a dynamic module.
+in <0x00017> System.Reflection.Emit.AssemblyBuilder:get_Location ()
+in <0x0002c> Mono.CSharp.Report:SymbolRelatedToPreviousError (System.Type type)
+in <0x0017e> Mono.CSharp.MemberBase:DoDefine ()
+in <0x00011> Mono.CSharp.PropertyBase:DoDefine ()
+in <0x0000b> Mono.CSharp.PropertyBase:Define ()
+in <0x00015> Mono.CSharp.Property:Define ()
+in <0x00074>
+Mono.CSharp.TypeContainer+MemberCoreArrayList:DefineContainerMembers ()
+in <0x00014> Mono.CSharp.TypeContainer:DefineContainerMembers
+(Mono.CSharp.MemberCoreArrayList mcal)
+in <0x0044b> Mono.CSharp.TypeContainer:DoDefineMembers ()
+in <0x0002a> Mono.CSharp.TypeContainer:DefineMembers
+(Mono.CSharp.TypeContainer container)
+in <0x000fa> Mono.CSharp.RootContext:PopulateTypes ()
+in <0x00b6d> Mono.CSharp.Driver:MainDriver (System.String[] args)
+in <0x0000f> Mono.CSharp.Driver:Main (System.String[] args)
+
+Expected something like:
+
+mono$ mcs /tmp/xxx.cs
+/tmp/xxx.cs(3) error CS0053: Inconsistent accessibility: property type
+`Blah' is less accessible than property `A.B'
+/tmp/xxx.cs(10): 'Blah' (name of symbol related to previous error
+Compilation failed: 1 error(s), 0 warnings