July 02, 2004 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'.
|
Copyright © 1999-2021 by the D Language Foundation