www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - internal error: ..\ztc\cgcs.c 353 --- CharArray ~ Char

reply Florian Sonnenberger <nairolf online.de> writes:
The following code compiles correctly ...
------------------------------------------

char[] CharArray;
char[] Array = "AB";
char Char = 'C';

CharArray = Array ~ Char;

------------------------------------------

... but if you change Char to 'C' ...
------------------------------------------

char[] CharArray;
char[] Array = "AB";


CharArray = Array ~ 'C';

------------------------------------------

... you'll get an "Internal error: ..\ztc\cgcs.c 353"

(DMD 0.127 / WinXP)

Florian
Jun 20 2005
parent Thomas Kuehne <thomas-dloop kuehne.this-is-spam.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Florian Sonnenberger schrieb am Mon, 20 Jun 2005 20:52:04 +0200:
 The following code compiles correctly ...
 ------------------------------------------

 char[] CharArray;
 char[] Array = "AB";
 char Char = 'C';

 CharArray = Array ~ Char;

 ------------------------------------------

 ... but if you change Char to 'C' ...
 ------------------------------------------

 char[] CharArray;
 char[] Array = "AB";


 CharArray = Array ~ 'C';

 ------------------------------------------

 ... you'll get an "Internal error: ..\ztc\cgcs.c 353"

 (DMD 0.127 /WinXP)
Added to DStress as http://dstress.kuehne.cn/run/b/bug_cgcs_353_E2.d http://dstress.kuehne.cn/run/b/bug_cgcs_353_F2.d http://dstress.kuehne.cn/run/b/bug_cgcs_353_G2.d http://dstress.kuehne.cn/run/b/bug_cgcs_353_H2.d http://dstress.kuehne.cn/run/b/bug_cgcs_353_I2.d http://dstress.kuehne.cn/run/b/bug_cgcs_353_J2.d http://dstress.kuehne.cn/run/b/bug_cgcs_353_K2.d http://dstress.kuehne.cn/run/b/bug_cgcs_353_L2.d http://dstress.kuehne.cn/run/b/bug_cgcs_353_M2.d http://dstress.kuehne.cn/run/b/bug_cgcs_353_N2.d http://dstress.kuehne.cn/run/b/bug_cgcs_353_O2.d http://dstress.kuehne.cn/run/b/bug_cgcs_353_P2.d http://dstress.kuehne.cn/run/b/bug_cgcs_353_Q2.d http://dstress.kuehne.cn/run/b/bug_cgcs_353_R2.d http://dstress.kuehne.cn/run/b/bug_cgcs_353_S2.d http://dstress.kuehne.cn/run/b/bug_cgcs_353_T2.d http://dstress.kuehne.cn/run/b/bug_cgcs_353_U2.d http://dstress.kuehne.cn/run/b/bug_cgcs_353_V2.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFCuUWb3w+/yD4P9tIRAkY5AJ9hn0YwV66AydnBMH18rXOAJm0hYgCeNwzu xFqKKLpzdlJx7xz/2W0IJ/o= =WMlf -----END PGP SIGNATURE-----
Jun 22 2005