January 25, 2006 assert fail expression.c line 674 | ||||
---|---|---|---|---|
| ||||
template tree(int n) { const int tree = 1; } template getsize() { const int getsize = sizeof(tree!(1)); } template forest() { const int sz = getsize!(); const int done = tree!( sz ); } const int crash = forest!().done; |
January 28, 2006 Re: assert fail expression.c line 674 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don Clugston Attachments: | Don Clugston schrieb am 2006-01-25: > > template tree(int n) > { > const int tree = 1; > } > > template getsize() > { > const int getsize = sizeof(tree!(1)); > } > > template forest() { > const int sz = getsize!(); > const int done = tree!( sz ); > } > > const int crash = forest!().done; Added to DStress as http://dstress.kuehne.cn/run/s/sizeof_16_A.d http://dstress.kuehne.cn/nocompile/s/sizeof_16_B.d http://dstress.kuehne.cn/nocompile/s/sizeof_16_C.d Thomas |
Copyright © 1999-2021 by the D Language Foundation