www.digitalmars.com         C & C++   DMDScript  

D - bug report: internal error with invalid code

reply Farmer <itsFarmer. freenet.de> writes:
Hello,

compiling the code below with DMD 0.51 prints "Internal error: 
..\ztc\cod4.c 348" instead of "cannot implicitly convert char[] to 
char[47]".

void func()
{
	char[47] fixedArray;
	fixedArray="some String";
}



Furtunately the correct code works fine:
void func()
{
	char[47] fixedArray;
	fixedArray[]="some String";
}



Farmer
Feb 03 2003
parent "Walter" <walter digitalmars.com> writes:
Thanks, I'll take care of it.
Feb 03 2003