digitalmars.D.bugs - Missing init TypeInfo bug during mintl use
- Chris Newton (32/32) Dec 29 2004 Hello all,
Hello all, I came across a problem with mintl's SortedAA template and the D compiler. I'm using D v0.109 on Linux. The problem is that the init TypeInfo for classes and delegates are not being automaticly generated when using a SortedAA template. Example code: module test; import mintl.sortedaa; TypeInfo ti=typeid(void delegate()); SortedAA!(char[],void delegate()) foo1; int main() { return 0; } This code compiles and links fine. When you comment out the instance of 'ti', the init TypeInfo for delegates is never created, even though mintl makes use of this. This happens for both delegates and classes. Its not a simple problem with templates, a simple template like the following works fine: module test; template Foo(T) { void func() { TypeInfo ti=typeid(T); } } int main() { return 0; } Thats as much as I know. :) Thanks Chris Newton
Dec 29 2004