www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - auto and "new Struct"

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


struct Struct{
	int i;
}

int main(){
	auto s = new Struct; // line 14
	return 0;
}

b.d(14): cannot implicitly convert expression (new S **) of type S ** to S *

Added to DStress as 
http://dstress.kuehne.cn/run/a/auto_12_A.d
http://dstress.kuehne.cn/run/a/auto_12_B.d

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFDh/kl3w+/yD4P9tIRAuFtAKCrKdfTkEZc2Qxl0DmULGck/2MTBwCfbFoS
7hsbMYi8kNSuTl7b8t8ZDes=
=oHfF
-----END PGP SIGNATURE-----
Nov 26 2005