Bug 324561 (MONO81887) - [GMCS] typeof of nested unbound types causes the compiler crash
Summary: [GMCS] typeof of nested unbound types causes the compiler crash
Status: RESOLVED FIXED
Alias: MONO81887
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-16 02:09 UTC by Marek Safar
Modified: 2010-04-27 09:54 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 20:41:47 UTC


---- Reported by marek.safar@seznam.cz 2007-06-15 19:09:37 MST ----

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:


Unknown operating system unknown. Setting to default OS "Other".

Comment 2 Marek Safar 2010-04-27 09:54:37 UTC
Fixed in trunk.