www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Segfault: nested templates and duplicate names

This code will segfault dmd 0.94 on Linux (RH 9):

 template foo(T) {}
 template bar(T1,T2) {}
  
 int main() {
   mixin bar!(foo!(char),foo!(char)) foo;
   return 0;
 }
It doesn't segfault if you change the mixin name to 'baz'.
Jul 01 2004