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 - internal error - compiler crash

Hi all,

  Seems that I have posted this message last time in the wrong group.
  Here it goes:

Tiago Gasiba schrieb:

 The following code produces an internal compuler error with GDC 0.16:
 
 <snip>
 void foo( cdouble[] data ) {
   data[0] -= data[0].im;
 }
 <snip>
 
 gdc bug_gdc.d
 bug_gdc.d: In function 'foo':
 bug_gdc.d:2: internal compiler error: Segmentation fault
 
 Tiago
 

The following code also crashes the compiler, although I think both bugs are related: <snip> void foo( cdouble[] data ) { data[0] /= cast(double)data.length; } <snip> this is a typecast problem, because the following code compiles correctly: <snip> void foo( cdouble[] data ) { data[0] /= cast(cdouble)data.length; } <snip> Tiago -- Tiago Gasiba (M.Sc.) - http://www.gasiba.de Everything should be made as simple as possible, but not simpler.
Nov 09 2005