core.atomic bug? windows 2008r2 dmd 2.69.2 x64

sdv via Digitalmars-d digitalmars-d at puremagic.com
Mon Jan 4 20:00:26 PST 2016


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


More information about the Digitalmars-d mailing list