July 31, 2005 Crash on template compile | ||||
---|---|---|---|---|
| ||||
If I remove the "volatile" everything works fine. # template load( T, int i, size_t sizeofT : 4 = T.sizeof ) # { # T load( inout T val ) # { # volatile asm # { # naked; # mov EAX, [EAX]; # ret; # } # } # } # # void main() # { # int i; # load!(int,1)(i); # load!(int,2)(i); # } |
August 02, 2005 Re: Crash on template compile | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly Attachments: | Sean Kelly schrieb: > If I remove the "volatile" everything works fine. > > # template load( T, int i, size_t sizeofT : 4 = T.sizeof ) > # { > # T load( inout T val ) > # { > # volatile asm > # { > # naked; > # mov EAX, [EAX]; > # ret; > # } > # } > # } > # > # void main() > # { > # int i; > # load!(int,1)(i); > # load!(int,2)(i); > # } Added to DStress as http://dstress.kuehne.cn/run/v/volatile_01_A.d http://dstress.kuehne.cn/run/v/volatile_01_B.d Thomas |
Copyright © 1999-2021 by the D Language Foundation