www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Template specialization bug

The following does not compile:

class foo(T: T[])

class bar(Tp: Tp[])

alias bar!(char[]) cbar;

void main() {}
It gives the error message:
template instance bar!(char[]) does not match any template declaration

Renaming T to Tp, or Tp to T (or removing foo altogether) removes the error.

I'm on linux using dmd 0.101.

Sep 11 2004