[Mono-bugs] [Bug 81887][Nor] New - [GMCS] typeof of nested unbound types caused compiler crash

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jun 15 19:09:37 EDT 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 marek.safar at seznam.cz.

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

--- shadow/81887	2007-06-15 19:09:37.000000000 -0400
+++ shadow/81887.tmp.14591	2007-06-15 19:09:37.000000000 -0400
@@ -0,0 +1,67 @@
+Bug#: 81887
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: marek.safar at seznam.cz               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [GMCS] typeof of nested unbound types caused compiler crash 
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+typeof of nested unbound types caused compiler crash 
+
+Steps to reproduce the problem:
+1. The test is a copy of gtest-066.cs (no need to commit it again)
+2. uncomment the line
+
+
+using System;
+using A = Test;
+
+public class Foo<T>
+{
+	public class Bar <U>
+	{
+	}
+}
+
+namespace Test
+{
+	class FooEx<V, W> {}
+}
+
+class X
+{
+	static void Main ()
+	{
+		Console.WriteLine (typeof (Foo<>));
+//		Console.WriteLine (typeof (Foo<>.Bar<>));
+		Console.WriteLine (typeof (Test.FooEx<,>));		
+		Console.WriteLine (typeof (A::FooEx<,>));
+	}
+}
+
+Actual Results:
+
+Crash
+
+Expected Results:
+
+No error
+
+How often does this happen? 
+
+
+Additional Information:


More information about the mono-bugs mailing list