No clues? Why does the second doTest fail, but not the first? > doTest!(1)(); > doTest!(2)(); // template instance main.doTest!(2) error instantiating And what's with the "this for n needs to be type A"? Walter? Bug? Or something I'm doing wrong? I've reduced it to a small code fragment.