> It works with dmd 2.040 without the :int specialization. No it doesnt. Did you use specific compiler flags? Also check that you are using the source I posted and not the modified versions presented which served only to circumvent compiler warnings and not answer the original question: is it a compiler bug or misinterpreted template specialization?