digitalmars.D.bugs - alias foo foo - assert in compiler
- Ilya Zaitseff (10/10) Jul 25 2004 [aliasbug.d]
- Ilya Zaitseff (12/22) Jul 28 2004 I just discovered another bug with aliases...
[aliasbug.d] void foo() {}; void main() { alias foo foo; } produces [dmd 0.96]: aliasbug.d(5): alias foo recursive alias declaration Assertion failure: 's != this' on line 267 in file 'declaration.c' abnormal program termination
Jul 25 2004
[aliasbug.d] void foo() {}; void main() { alias foo foo; } produces [dmd 0.96]: aliasbug.d(5): alias foo recursive alias declaration Assertion failure: 's != this' on line 267 in file 'declaration.c' abnormal program terminationI just discovered another bug with aliases... template T() { void foo() { return 0; } alias foo foo; } mixin T; void main() { foo(); } Compiler [0.97] goes into endless loop and does not respond.
Jul 28 2004