Thread overview | |||||
---|---|---|---|---|---|
|
February 17, 2006 circular constant definitions bring about endless error messages | ||||
---|---|---|---|---|
| ||||
const auto a = b; const auto b = a; void main(){} /* dmd 0.147 reports: t.d(1): forward reference of b t.d(1): forward reference of a ... lather, rinse, and repeat. */ |
February 17, 2006 Re: circular constant definitions bring about endless error messages | ||||
---|---|---|---|---|
| ||||
Posted in reply to Wang Zhen | a shorter test case:
const auto a = a; void main(){}
Wang Zhen wrote:
> const auto a = b; const auto b = a; void main(){}
>
> /*
> dmd 0.147 reports:
> t.d(1): forward reference of b
> t.d(1): forward reference of a
> ...
> lather, rinse, and repeat.
>
> */
|
February 18, 2006 Re: circular constant definitions bring about endless error messages | ||||
---|---|---|---|---|
| ||||
Posted in reply to Wang Zhen Attachments: | Wang Zhen schrieb am 2006-02-17: > a shorter test case: > > const auto a = a; void main(){} > > > Wang Zhen wrote: >> const auto a = b; const auto b = a; void main(){} >> >> /* >> dmd 0.147 reports: >> t.d(1): forward reference of b >> t.d(1): forward reference of a >> ... >> lather, rinse, and repeat. >> >> */ Added to DStress as http://dstress.kuehne.cn/nocompile/c/const_34_A.d http://dstress.kuehne.cn/nocompile/c/const_34_B.d http://dstress.kuehne.cn/nocompile/c/const_34_C.d http://dstress.kuehne.cn/nocompile/c/const_34_D.d http://dstress.kuehne.cn/nocompile/c/const_34_E.d http://dstress.kuehne.cn/nocompile/c/const_34_F.d Thomas |
Copyright © 1999-2021 by the D Language Foundation