www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Compiler crash when concatenating template char[] parameters.

reply Don Clugston <dac nospam.com.au> writes:
DMD 0.142 Windows.
------------------------
template dog(char[] duck)
{
    const int dog = 2;
}

const int aardvark = dog!("cat" ~ "pig");
------------------------
Dec 30 2005
parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Don Clugston schrieb am 2005-12-30:
 DMD 0.142 Windows.
 ------------------------
 template dog(char[] duck)
 {
     const int dog = 2;
 }

 const int aardvark = dog!("cat" ~ "pig");
 ------------------------
Added to DStress as http://dstress.kuehne.cn/run/o/opCat_18_A.d http://dstress.kuehne.cn/run/o/opCat_18_B.d http://dstress.kuehne.cn/run/o/opCat_18_C.d http://dstress.kuehne.cn/run/o/opCat_18_D.d http://dstress.kuehne.cn/run/o/opCat_18_E.d http://dstress.kuehne.cn/run/o/opCat_18_F.d http://dstress.kuehne.cn/run/o/opCat_18_G.d http://dstress.kuehne.cn/run/o/opCat_18_H.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFDtgqP3w+/yD4P9tIRAj/vAJ9sWV1ioNAXQFXluYMx72pcL6W2EACeIPrj d38U/s8TXUCoX3iZDilKgxE= =F1gn -----END PGP SIGNATURE-----
Jan 01 2006