www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

D.gnu - concat string literal to char

↑ ↓ ← 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
↑ ↓ → =?ISO-8859-1?Q?Thomas_K=FChne?= <thomas-dloop kuehne.cn> writes:
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

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