February 17, 2006 circular constant definitions not rejected by dmd 0.147 | ||||
---|---|---|---|---|
| ||||
const int a = b; const int b = .a; void main(){} //should not compile |
February 17, 2006 Re: circular constant definitions not rejected by dmd 0.147 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Wang Zhen Attachments: | Wang Zhen schrieb am 2006-02-17: > const int a = b; > const int b = .a; > void main(){} > //should not compile Added to DStress as http://dstress.kuehne.cn/nocompile/c/const_32_A.d http://dstress.kuehne.cn/nocompile/c/const_32_B.d http://dstress.kuehne.cn/nocompile/c/const_32_C.d http://dstress.kuehne.cn/nocompile/c/const_32_D.d Thomas |
Copyright © 1999-2021 by the D Language Foundation