www.digitalmars.com         C & C++   DMDScript  

D.gnu - concat string literal to char

reply Carlos Santander <csantander619 gmail.com> writes:
This file:

//-----------
int main(char [][] args)
{
         char [] foo;
         foo="<"~foo[0];
         return 0;
}
//-----------

Produces:

err.d: In function `main':
err.d:4: internal compiler error: in rawArray, at d/d-codegen.cc:981

Using gdc 0.15, Mac OS X 10.3.9.

-- 
Carlos Santander Bernal
Sep 22 2005
parent =?ISO-8859-1?Q?Thomas_K=FChne?= <thomas-dloop kuehne.cn> writes:
Carlos Santander schrieb:

 This file:
 
 //-----------
 int main(char [][] args)
 {
         char [] foo;
         foo="<"~foo[0];
         return 0;
 }
 //-----------
 
 Produces:
 
 err.d: In function `main':
 err.d:4: internal compiler error: in rawArray, at d/d-codegen.cc:981
 
 Using gdc 0.15, Mac OS X 10.3.9.
Added to DStress as http://dstress.kuehne.cn/run/b/bug_d_codegen_981_A.d Thomas
Sep 24 2005