www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - synchronized crash

reply "Regan Heath" <regan netwin.co.nz> writes:
--[bug.d]--
void main()
{
	ubyte[] data;	
	synchronized(data) {
	}
}

dmd bug.d
bug.d(4): can only synchronize on class objects, not 'ubyte[]'
<crash>

Regan
Jul 06 2005
parent Thomas Kuehne <thomas-dloop kuehne.this-is-spam.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Regan Heath schrieb am Thu, 07 Jul 2005 13:00:27 +1200:
 --[bug.d]--
 void main()
 {
 	ubyte[] data;	
 	synchronized(data) {
 	}
 }

 dmd bug.d
 bug.d(4): can only synchronize on class objects, not 'ubyte[]'
<crash>

Added to DStress as http://dstress.kuehne.cn/nocompile/s/synchronized_01_A.d http://dstress.kuehne.cn/run/s/synchronized_01_B.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFC39MG3w+/yD4P9tIRAhZbAJ4yGHVCCms63/75CD0ySjaV4BO11gCdF8Sd gKpHugindVQCJQvRp1Eg7VA= =QnEE -----END PGP SIGNATURE-----
Jul 21 2005