Thread overview
circular constant definitions bring about endless error messages
Feb 17, 2006
Wang Zhen
Feb 17, 2006
Wang Zhen
Feb 18, 2006
Thomas Kuehne
February 17, 2006
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
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
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