www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - template class compiler bug?

I am not quite sure did I post this like message before, anyway I get "abnormal
program termination" when I try to compile below code:

---------

class Foo(T)
{
Node sentinel; 

struct Node
{
T value; 
}
} 

void main()
{
Foo!(int) bar=new Foo!(int); 
}

---------

But below code seem to be compiled fine:

---------

class Foo(T)
{
struct Node
{
T value; 
}

Node sentinel; 
} 

void main()
{
Foo!(int) bar=new Foo!(int); 
}

---------
Jul 08 2005