February 11, 2006 Recursive alias crashes dmd.exe | ||||
---|---|---|---|---|
| ||||
DMD 0.146 on Windows XP SP2. -- template Foo(TYPE) {} void main() { alias Foo!(int) Foo; } -- -> "alias Foo recursive alias declaration" and a compiler crash. Put the alias outside the function and it works (that is, doesn't compile, but doesn't crash either). Same problem happens with typedef, except then there's no error message, the compiler just crashes. Change "template" to "class" and no change. |
Copyright © 1999-2021 by the D Language Foundation