January 05, 2016 core.atomic bug? windows 2008r2 dmd 2.69.2 x64 | ||||
|---|---|---|---|---|
| ||||
struct sts
{
size_t a1;
struct m1{
size_t a9;
size_t a10;
}
shared m1 t1;
}
int main(string[] argv)
{
auto y1 = new sts();
cas(&y1.t1,y1.t1,y1.t1);
return 0;
}
| ||||
January 05, 2016 Re: core.atomic bug? windows 2008r2 dmd 2.69.2 x64 | ||||
|---|---|---|---|---|
| ||||
Posted in reply to sdv | On Tuesday, 5 January 2016 at 00:58:57 UTC, sdv wrote: > struct sts > { > size_t a1; > struct m1{ > size_t a9; > size_t a10; > } > shared m1 t1; > } > > int main(string[] argv) > { > > auto y1 = new sts(); > cas(&y1.t1,y1.t1,y1.t1); > > return 0; > } align(16) //<<<-----------------------fix struct sts { size_t a1; struct m1{ size_t a9; size_t a10; } shared m1 t1; } int main(string[] argv) { auto y1 = new sts(); cas(&y1.t1,y1.t1,y1.t1); return 0; } good | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply