digitalmars.D.bugs - Template specialization bug
- Nick (16/16) Sep 11 2004 The following does not compile:
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. Nick
Sep 11 2004