← Back to index
|
Original Bugzilla link
Bug 722 – mixin as return value: expression.c:775: virtual void Expression::toMangleBuffer(OutBuffer*): Assertion `0' failed.
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2006-12-23T04:42:00Z
Last change time
2014-02-15T13:20:27Z
Assigned to
bugzilla
Creator
thomas-dloop
Comments
Comment #0
by thomas-dloop — 2006-12-23T04:42:03Z
(Originaly reported by Wang Zhen <
[email protected]
> on 2006-02-17 as news:
[email protected]
) # # template t(int t){ # } # # int main(){ # return t!(main()); # } # test cases:
http://dstress.kuehne.cn/nocompile/t/template_30_A.d
http://dstress.kuehne.cn/nocompile/t/template_30_B.d
http://dstress.kuehne.cn/nocompile/t/template_30_C.d
http://dstress.kuehne.cn/nocompile/t/template_30_D.d
http://dstress.kuehne.cn/nocompile/t/template_30_E.d
Comment #1
by thomas-dloop — 2006-12-23T07:10:12Z
in addition: (Originally reported by Don Clugston <
[email protected]
> on 2006-01-25 in news:
[email protected]
) # # template tree(int n){ # const int tree = n; # } # # template getsize(){ # const int getsize = sizeof(tree!(2)); # } # # template forest() { # const int sz = getsize!(); # const int done = tree!( sz ); # } # # int crash = forest!().done; # testcases:
http://dstress.kuehne.cn/nocompile/s/sizeof_16_B.d
http://dstress.kuehne.cn/nocompile/s/sizeof_16_C.d
Comment #2
by thomas-dloop — 2007-03-02T08:28:14Z
fixed in DMD-0.178