www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - DMD 0.112 WIN32: alias bug

reply marko <tm030127d galeb.etf.bg.ac.yu> writes:
struct VNode
{
	int a;
	Node next;
}
alias VNode* Node;

void main()
{
	Node n = new VNode;
}

dmd: cannot implicitly convert expression new VNode * of type VNode * to  
VNode *
Feb 10 2005
parent =?ISO-8859-15?Q?Thomas_K=FChne?= writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

marko wrote:

| struct VNode
| {
|     int a;
|     Node next;
| }
| alias VNode* Node;
|
| void main()
| {
|     Node n = new VNode;
| }
|
| dmd: cannot implicitly convert expression new VNode * of type VNode *
| to  VNode *

Added to DStress as
http://dstress.kuehne.cn/run/new_01.d

Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFCDU1A3w+/yD4P9tIRAidmAKCzs3MPMtTaWArIQ9NUVR/4C9iMpACfWg0A
KrzI8adPSNLC41Q3sAsh3Fg=
=SPMJ
-----END PGP SIGNATURE-----
Feb 11 2005