July 31, 2005
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
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