July 08, 2005 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); } --------- |
Copyright © 1999-2021 by the D Language Foundation