www.digitalmars.com         C & C++   DMDScript  

D.gnu - r50 gdc crash on 4.0.3, mingw32

reply Downs <mathis.beer tu-ilmenau.de> writes:
Trying to compile the file html.d
( http://paste.dprogramming.com/dpba895x.php )
with a recently compiled r50 of gdc on gcc 4.0.3 on mingw32,
I encountered the following error:
 html.d: In member function 'apply':
 html.d:211: internal compiler error: Arithmetic exception
 (that's actually an assert, I just made it an arithmetic
 exception so's I could get the stacktrace .. the original line was
 Assertion failed: func_type!=NULL, file ../../gcc-4.0.3/gcc/d/d-codegen.cc,
line 854
 Please submit a full bug report yada yada.
The stack trace at the time of the crash is: E:\code\dmono>gdb c:\gdc\libexec\gcc\i686-pc-mingw32\4.0.3\cc1d.exe GNU gdb 5.2.1 Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-mingw32"... (gdb) r html.d -dumpbase html.d -auxbase-strip obj/html.o -fversion=Windows -ipr efix C:/gdc/lib/gcc/i686-pc-mingw32/4.0.3 -IC:/gdc/include/d/4.0.3 -o test.s Starting program: c:\gdc\libexec\gcc\i686-pc-mingw32\4.0.3\cc1d.exe html.d -dump base html.d -auxbase-strip obj/html.o -fversion=Windows -iprefix C:/gdc/lib/gcc/ i686-pc-mingw32/4.0.3 -IC:/gdc/include/d/4.0.3 -o test.s Program received signal SIGFPE, Arithmetic exception. 0x004ba10f in IRState::call(TypeFunction*, tree_node*, tree_node*, Array*) ( this=0x203cb70, func_type=0x0, callable=0x20737e0, object=0x20737c0, arguments=0x15afd60) at ../../gcc-4.0.3/gcc/d/d-codegen.cc:854 854 if (func_type==NULL) { int a=0; a=0/a; } Current language: auto; currently c++ (gdb) bt (this=0x203cb70, func_type=0x0, callable=0x20737e0, object=0x20737c0, arguments=0x15afd60) at ../../gcc-4.0.3/gcc/d/d-codegen.cc:854 expr=0x15afd28, arguments=0x15afd60) at ../../gcc-4.0.3/gcc/d/d-codegen.cc:824 at ../../gcc-4.0.3/gcc/d/d-glue.cc:1491 exp=0x15afd88, target_type=0x15841b0) at ../../gcc-4.0.3/gcc/d/d-codegen.cc:239 at ../../gcc-4.0.3/gcc/d/d-glue.cc:1318 this=0x203cb70, exp=0x1eaafa8, target_type=0x15841b0) at ../../gcc-4.0.3/gcc/d/d-codegen.cc:549 at ../../gcc-4.0.3/gcc/d/d-glue.cc:1130 at ../../gcc-4.0.3/gcc/d/d-glue.cc:1200 at ../../gcc-4.0.3/gcc/d/d-glue.cc:1199 ---Type <return> to continue, or q <return> to quit--- exp=0x1eaaf18, target_type=0x1e6d8f0) at ../../gcc-4.0.3/gcc/d/d-codegen.cc:239 at ../../gcc-4.0.3/gcc/d/d-glue.cc:1318 this=0x203cb70, exp=0x1eaafe0, arg=0x15a4f00) at ../../gcc-4.0.3/gcc/d/d-codegen.cc:490 (this=0x203cb70, func_type=0x1e6e2a8, callable=0x2066dc0, object=0x2072140, arguments=0x15af258) at ../../gcc-4.0.3/gcc/d/d-codegen.cc:907 this=0x203cb70, func_decl=0x15a4f30, object=0x2072140, args=0x15af258) at ../../gcc-4.0.3/gcc/d/d-codegen.cc:838 at ../../gcc-4.0.3/gcc/d/d-glue.cc:1975 exp=0x15afdc0, target_type=0x15841b0) at ../../gcc-4.0.3/gcc/d/d-codegen.cc:239 at ../../gcc-4.0.3/gcc/d/d-glue.cc:1318 irs=0x203cb70) at ../../gcc-4.0.3/gcc/d/d-glue.cc:883 ---Type <return> to continue, or q <return> to quit--- at ../../gcc-4.0.3/gcc/d/d-glue.cc:3949 irs=0x203cb70) at ../../gcc-4.0.3/gcc/d/d-glue.cc:3917 irs=0x203cb70) at ../../gcc-4.0.3/gcc/d/d-glue.cc:3917 at ../../gcc-4.0.3/gcc/d/d-glue.cc:2636 at ../../gcc-4.0.3/gcc/d/dmd/toobj.c:310 at ../../gcc-4.0.3/gcc/d/d-glue.cc:2779 at ../../gcc-4.0.3/gcc/toplev.c:2157 at ../../gcc-4.0.3/gcc/main.c:35 (gdb) Greetings, thanks and good luck! :D --downs
Dec 06 2006
next sibling parent David Friedman <dvdfrdmn users.ess-eff.net> writes:
Downs,

Can you tell me where to get the rest of the code?  Thanks!

BTW, if you want debug internal compiler errors, put a breakpoint on 
'fancy_abort'.

David

Downs wrote:
 Trying to compile the file html.d
 ( http://paste.dprogramming.com/dpba895x.php )
 with a recently compiled r50 of gdc on gcc 4.0.3 on mingw32,
 I encountered the following error:
  > html.d: In member function 'apply':
  > html.d:211: internal compiler error: Arithmetic exception
  > (that's actually an assert, I just made it an arithmetic
  > exception so's I could get the stacktrace .. the original line was
  > Assertion failed: func_type!=NULL, file 
 ../../gcc-4.0.3/gcc/d/d-codegen.cc, line 854
  > Please submit a full bug report yada yada.
 
 The stack trace at the time of the crash is:
 E:\code\dmono>gdb c:\gdc\libexec\gcc\i686-pc-mingw32\4.0.3\cc1d.exe
 GNU gdb 5.2.1
 Copyright 2002 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you 
 are
 welcome to change it and/or distribute copies of it under certain 
 conditions.
 Type "show copying" to see the conditions.
 There is absolutely no warranty for GDB.  Type "show warranty" for details.
 This GDB was configured as "i686-pc-mingw32"...
 (gdb) r html.d -dumpbase html.d -auxbase-strip obj/html.o 
 -fversion=Windows -ipr
 efix C:/gdc/lib/gcc/i686-pc-mingw32/4.0.3 -IC:/gdc/include/d/4.0.3 -o 
 test.s
 Starting program: c:\gdc\libexec\gcc\i686-pc-mingw32\4.0.3\cc1d.exe 
 html.d -dump
 base html.d -auxbase-strip obj/html.o -fversion=Windows -iprefix 
 C:/gdc/lib/gcc/
 i686-pc-mingw32/4.0.3 -IC:/gdc/include/d/4.0.3 -o test.s
 
 Program received signal SIGFPE, Arithmetic exception.
 0x004ba10f in IRState::call(TypeFunction*, tree_node*, tree_node*, 
 Array*) (
     this=0x203cb70, func_type=0x0, callable=0x20737e0, object=0x20737c0,
     arguments=0x15afd60) at ../../gcc-4.0.3/gcc/d/d-codegen.cc:854
 854         if (func_type==NULL) { int a=0; a=0/a; }
 Current language:  auto; currently c++
 (gdb) bt

 Array*)
     (this=0x203cb70, func_type=0x0, callable=0x20737e0, object=0x20737c0,
     arguments=0x15afd60) at ../../gcc-4.0.3/gcc/d/d-codegen.cc:854

     expr=0x15afd28, arguments=0x15afd60)
     at ../../gcc-4.0.3/gcc/d/d-codegen.cc:824

     at ../../gcc-4.0.3/gcc/d/d-glue.cc:1491

     exp=0x15afd88, target_type=0x15841b0)
     at ../../gcc-4.0.3/gcc/d/d-codegen.cc:239

     at ../../gcc-4.0.3/gcc/d/d-glue.cc:1318

     this=0x203cb70, exp=0x1eaafa8, target_type=0x15841b0)
     at ../../gcc-4.0.3/gcc/d/d-codegen.cc:549

 irs=0x203cb70)
     at ../../gcc-4.0.3/gcc/d/d-glue.cc:1130

 irs=0x203cb70)
     at ../../gcc-4.0.3/gcc/d/d-glue.cc:1200

 irs=0x203cb70)
     at ../../gcc-4.0.3/gcc/d/d-glue.cc:1199

 ---Type <return> to continue, or q <return> to quit---
     exp=0x1eaaf18, target_type=0x1e6d8f0)
     at ../../gcc-4.0.3/gcc/d/d-codegen.cc:239

     at ../../gcc-4.0.3/gcc/d/d-glue.cc:1318

     this=0x203cb70, exp=0x1eaafe0, arg=0x15a4f00)
     at ../../gcc-4.0.3/gcc/d/d-codegen.cc:490

 Array*)
     (this=0x203cb70, func_type=0x1e6e2a8, callable=0x2066dc0,
     object=0x2072140, arguments=0x15af258)
     at ../../gcc-4.0.3/gcc/d/d-codegen.cc:907

     this=0x203cb70, func_decl=0x15a4f30, object=0x2072140, args=0x15af258)
     at ../../gcc-4.0.3/gcc/d/d-codegen.cc:838

     at ../../gcc-4.0.3/gcc/d/d-glue.cc:1975

     exp=0x15afdc0, target_type=0x15841b0)
     at ../../gcc-4.0.3/gcc/d/d-codegen.cc:239

     at ../../gcc-4.0.3/gcc/d/d-glue.cc:1318

     irs=0x203cb70) at ../../gcc-4.0.3/gcc/d/d-glue.cc:883
 ---Type <return> to continue, or q <return> to quit---

 irs=0x203cb70)
     at ../../gcc-4.0.3/gcc/d/d-glue.cc:3949

     irs=0x203cb70) at ../../gcc-4.0.3/gcc/d/d-glue.cc:3917

     irs=0x203cb70) at ../../gcc-4.0.3/gcc/d/d-glue.cc:3917

     at ../../gcc-4.0.3/gcc/d/d-glue.cc:2636

     at ../../gcc-4.0.3/gcc/d/dmd/toobj.c:310

     at ../../gcc-4.0.3/gcc/d/d-glue.cc:2779

 ../../gcc-4.0.3/gcc/d/d-lang.cc:1017



     at ../../gcc-4.0.3/gcc/toplev.c:2157

     at ../../gcc-4.0.3/gcc/main.c:35
 (gdb)
 
 
 Greetings, thanks and good luck! :D
 --downs
Dec 06 2006
prev sibling parent reply Downs <mathis.beer tu-ilmenau.de> writes:
Downs wrote:
 Trying to compile the file html.d
 ( http://paste.dprogramming.com/dpba895x.php )
 with a recently compiled r50 of gdc on gcc 4.0.3 on mingw32,
 I encountered the following error:
  > html.d: In member function 'apply':
  > html.d:211: internal compiler error: Arithmetic exception
  > (that's actually an assert, I just made it an arithmetic
  > exception so's I could get the stacktrace .. the original line was
  > Assertion failed: func_type!=NULL, file 
 ../../gcc-4.0.3/gcc/d/d-codegen.cc, line 854
  > Please submit a full bug report yada yada.
 
 The stack trace at the time of the crash is:
 E:\code\dmono>gdb c:\gdc\libexec\gcc\i686-pc-mingw32\4.0.3\cc1d.exe
 GNU gdb 5.2.1
 Copyright 2002 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you 
 are
 welcome to change it and/or distribute copies of it under certain 
 conditions.
 Type "show copying" to see the conditions.
 There is absolutely no warranty for GDB.  Type "show warranty" for details.
 This GDB was configured as "i686-pc-mingw32"...
 (gdb) r html.d -dumpbase html.d -auxbase-strip obj/html.o 
 -fversion=Windows -ipr
 efix C:/gdc/lib/gcc/i686-pc-mingw32/4.0.3 -IC:/gdc/include/d/4.0.3 -o 
 test.s
 Starting program: c:\gdc\libexec\gcc\i686-pc-mingw32\4.0.3\cc1d.exe 
 html.d -dump
 base html.d -auxbase-strip obj/html.o -fversion=Windows -iprefix 
 C:/gdc/lib/gcc/
 i686-pc-mingw32/4.0.3 -IC:/gdc/include/d/4.0.3 -o test.s
 
 Program received signal SIGFPE, Arithmetic exception.
 0x004ba10f in IRState::call(TypeFunction*, tree_node*, tree_node*, 
 Array*) (
     this=0x203cb70, func_type=0x0, callable=0x20737e0, object=0x20737c0,
     arguments=0x15afd60) at ../../gcc-4.0.3/gcc/d/d-codegen.cc:854
 854         if (func_type==NULL) { int a=0; a=0/a; }
 Current language:  auto; currently c++
 (gdb) bt

 Array*)
     (this=0x203cb70, func_type=0x0, callable=0x20737e0, object=0x20737c0,
     arguments=0x15afd60) at ../../gcc-4.0.3/gcc/d/d-codegen.cc:854

     expr=0x15afd28, arguments=0x15afd60)
     at ../../gcc-4.0.3/gcc/d/d-codegen.cc:824

     at ../../gcc-4.0.3/gcc/d/d-glue.cc:1491

     exp=0x15afd88, target_type=0x15841b0)
     at ../../gcc-4.0.3/gcc/d/d-codegen.cc:239

     at ../../gcc-4.0.3/gcc/d/d-glue.cc:1318

     this=0x203cb70, exp=0x1eaafa8, target_type=0x15841b0)
     at ../../gcc-4.0.3/gcc/d/d-codegen.cc:549

 irs=0x203cb70)
     at ../../gcc-4.0.3/gcc/d/d-glue.cc:1130

 irs=0x203cb70)
     at ../../gcc-4.0.3/gcc/d/d-glue.cc:1200

 irs=0x203cb70)
     at ../../gcc-4.0.3/gcc/d/d-glue.cc:1199

 ---Type <return> to continue, or q <return> to quit---
     exp=0x1eaaf18, target_type=0x1e6d8f0)
     at ../../gcc-4.0.3/gcc/d/d-codegen.cc:239

     at ../../gcc-4.0.3/gcc/d/d-glue.cc:1318

     this=0x203cb70, exp=0x1eaafe0, arg=0x15a4f00)
     at ../../gcc-4.0.3/gcc/d/d-codegen.cc:490

 Array*)
     (this=0x203cb70, func_type=0x1e6e2a8, callable=0x2066dc0,
     object=0x2072140, arguments=0x15af258)
     at ../../gcc-4.0.3/gcc/d/d-codegen.cc:907

     this=0x203cb70, func_decl=0x15a4f30, object=0x2072140, args=0x15af258)
     at ../../gcc-4.0.3/gcc/d/d-codegen.cc:838

     at ../../gcc-4.0.3/gcc/d/d-glue.cc:1975

     exp=0x15afdc0, target_type=0x15841b0)
     at ../../gcc-4.0.3/gcc/d/d-codegen.cc:239

     at ../../gcc-4.0.3/gcc/d/d-glue.cc:1318

     irs=0x203cb70) at ../../gcc-4.0.3/gcc/d/d-glue.cc:883
 ---Type <return> to continue, or q <return> to quit---

 irs=0x203cb70)
     at ../../gcc-4.0.3/gcc/d/d-glue.cc:3949

     irs=0x203cb70) at ../../gcc-4.0.3/gcc/d/d-glue.cc:3917

     irs=0x203cb70) at ../../gcc-4.0.3/gcc/d/d-glue.cc:3917

     at ../../gcc-4.0.3/gcc/d/d-glue.cc:2636

     at ../../gcc-4.0.3/gcc/d/dmd/toobj.c:310

     at ../../gcc-4.0.3/gcc/d/d-glue.cc:2779

 ../../gcc-4.0.3/gcc/d/d-lang.cc:1017



     at ../../gcc-4.0.3/gcc/toplev.c:2157

     at ../../gcc-4.0.3/gcc/main.c:35
 (gdb)
 
 
 Greetings, thanks and good luck! :D
 --downs
The problem also appears for me with the following vastly simplified program: int main() { return delegate int() { return 0; }(); } In this case, I get the vastly simplified stack trace: GNU gdb 5.2.1 Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-mingw32"... (gdb) r test.d -IC:/gdc/include/d/4.0.3 Starting program: c:\gdc\libexec\gcc\i686-pc-mingw32\4.0.3\cc1d.exe test.d -IC:/ gdc/include/d/4.0.3 Program received signal SIGFPE, Arithmetic exception. 0x004ba10f in IRState::call(TypeFunction*, tree_node*, tree_node*, Array*) ( this=0x15a5360, func_type=0x0, callable=0x1530fe0, object=0x1530fc0, arguments=0x15a04d0) at ../../gcc-4.0.3/gcc/d/d-codegen.cc:854 854 if (func_type==NULL) { int a=0; a=0/a; } Current language: auto; currently c++ (gdb) bt (this=0x15a5360, func_type=0x0, callable=0x1530fe0, object=0x1530fc0, arguments=0x15a04d0) at ../../gcc-4.0.3/gcc/d/d-codegen.cc:854 expr=0x15a0498, arguments=0x15a04d0) at ../../gcc-4.0.3/gcc/d/d-codegen.cc:824 at ../../gcc-4.0.3/gcc/d/d-glue.cc:1491 this=0x15a5360, exp=0x15a04f8, target_type=0x14b9018) at ../../gcc-4.0.3/gcc/d/d-codegen.cc:549 irs=0x15a5360) at ../../gcc-4.0.3/gcc/d/d-glue.cc:3607 irs=0x15a5360) at ../../gcc-4.0.3/gcc/d/d-glue.cc:3917 at ../../gcc-4.0.3/gcc/d/d-glue.cc:2636 at ../../gcc-4.0.3/gcc/d/d-glue.cc:2779 at ../../gcc-4.0.3/gcc/toplev.c:2157 at ../../gcc-4.0.3/gcc/main.c:35 (gdb) q Again, good luck!
Dec 06 2006
parent reply David Friedman <dvdfrdmn users.ess-eff.net> writes:
Downs wrote:
 Downs wrote:
 
 Trying to compile the file html.d
 ( http://paste.dprogramming.com/dpba895x.php )
 with a recently compiled r50 of gdc on gcc 4.0.3 on mingw32,
 I encountered the following error:
  > html.d: In member function 'apply':
  > html.d:211: internal compiler error: Arithmetic exception
  > (that's actually an assert, I just made it an arithmetic
  > exception so's I could get the stacktrace .. the original line was
  > Assertion failed: func_type!=NULL, file 
 ../../gcc-4.0.3/gcc/d/d-codegen.cc, line 854
  > Please submit a full bug report yada yada.

 The stack trace at the time of the crash is:
 E:\code\dmono>gdb c:\gdc\libexec\gcc\i686-pc-mingw32\4.0.3\cc1d.exe
 GNU gdb 5.2.1
 Copyright 2002 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and 
 you are
 welcome to change it and/or distribute copies of it under certain 
 conditions.
 Type "show copying" to see the conditions.
 There is absolutely no warranty for GDB.  Type "show warranty" for 
 details.
 This GDB was configured as "i686-pc-mingw32"...
 (gdb) r html.d -dumpbase html.d -auxbase-strip obj/html.o 
 -fversion=Windows -ipr
 efix C:/gdc/lib/gcc/i686-pc-mingw32/4.0.3 -IC:/gdc/include/d/4.0.3 -o 
 test.s
 Starting program: c:\gdc\libexec\gcc\i686-pc-mingw32\4.0.3\cc1d.exe 
 html.d -dump
 base html.d -auxbase-strip obj/html.o -fversion=Windows -iprefix 
 C:/gdc/lib/gcc/
 i686-pc-mingw32/4.0.3 -IC:/gdc/include/d/4.0.3 -o test.s

 Program received signal SIGFPE, Arithmetic exception.
 0x004ba10f in IRState::call(TypeFunction*, tree_node*, tree_node*, 
 Array*) (
     this=0x203cb70, func_type=0x0, callable=0x20737e0, object=0x20737c0,
     arguments=0x15afd60) at ../../gcc-4.0.3/gcc/d/d-codegen.cc:854
 854         if (func_type==NULL) { int a=0; a=0/a; }
 Current language:  auto; currently c++
 (gdb) bt

 Array*)
     (this=0x203cb70, func_type=0x0, callable=0x20737e0, object=0x20737c0,
     arguments=0x15afd60) at ../../gcc-4.0.3/gcc/d/d-codegen.cc:854

     expr=0x15afd28, arguments=0x15afd60)
     at ../../gcc-4.0.3/gcc/d/d-codegen.cc:824

 irs=0x203cb70)
     at ../../gcc-4.0.3/gcc/d/d-glue.cc:1491

     exp=0x15afd88, target_type=0x15841b0)
     at ../../gcc-4.0.3/gcc/d/d-codegen.cc:239

 irs=0x203cb70)
     at ../../gcc-4.0.3/gcc/d/d-glue.cc:1318

     this=0x203cb70, exp=0x1eaafa8, target_type=0x15841b0)
     at ../../gcc-4.0.3/gcc/d/d-codegen.cc:549

 irs=0x203cb70)
     at ../../gcc-4.0.3/gcc/d/d-glue.cc:1130

 irs=0x203cb70)
     at ../../gcc-4.0.3/gcc/d/d-glue.cc:1200

 irs=0x203cb70)
     at ../../gcc-4.0.3/gcc/d/d-glue.cc:1199

 ---Type <return> to continue, or q <return> to quit---
     exp=0x1eaaf18, target_type=0x1e6d8f0)
     at ../../gcc-4.0.3/gcc/d/d-codegen.cc:239

 irs=0x203cb70)
     at ../../gcc-4.0.3/gcc/d/d-glue.cc:1318

     this=0x203cb70, exp=0x1eaafe0, arg=0x15a4f00)
     at ../../gcc-4.0.3/gcc/d/d-codegen.cc:490

 Array*)
     (this=0x203cb70, func_type=0x1e6e2a8, callable=0x2066dc0,
     object=0x2072140, arguments=0x15af258)
     at ../../gcc-4.0.3/gcc/d/d-codegen.cc:907

     this=0x203cb70, func_decl=0x15a4f30, object=0x2072140, 
 args=0x15af258)
     at ../../gcc-4.0.3/gcc/d/d-codegen.cc:838

 irs=0x203cb70)
     at ../../gcc-4.0.3/gcc/d/d-glue.cc:1975

     exp=0x15afdc0, target_type=0x15841b0)
     at ../../gcc-4.0.3/gcc/d/d-codegen.cc:239

 irs=0x203cb70)
     at ../../gcc-4.0.3/gcc/d/d-glue.cc:1318

     irs=0x203cb70) at ../../gcc-4.0.3/gcc/d/d-glue.cc:883
 ---Type <return> to continue, or q <return> to quit---

 irs=0x203cb70)
     at ../../gcc-4.0.3/gcc/d/d-glue.cc:3949

     irs=0x203cb70) at ../../gcc-4.0.3/gcc/d/d-glue.cc:3917

     irs=0x203cb70) at ../../gcc-4.0.3/gcc/d/d-glue.cc:3917

     at ../../gcc-4.0.3/gcc/d/d-glue.cc:2636

     at ../../gcc-4.0.3/gcc/d/dmd/toobj.c:310

     at ../../gcc-4.0.3/gcc/d/d-glue.cc:2779

 ../../gcc-4.0.3/gcc/d/d-lang.cc:1017



     at ../../gcc-4.0.3/gcc/toplev.c:2157

     at ../../gcc-4.0.3/gcc/main.c:35
 (gdb)


 Greetings, thanks and good luck! :D
 --downs
The problem also appears for me with the following vastly simplified program: int main() { return delegate int() { return 0; }(); } In this case, I get the vastly simplified stack trace: GNU gdb 5.2.1 Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-mingw32"... (gdb) r test.d -IC:/gdc/include/d/4.0.3 Starting program: c:\gdc\libexec\gcc\i686-pc-mingw32\4.0.3\cc1d.exe test.d -IC:/ gdc/include/d/4.0.3 Program received signal SIGFPE, Arithmetic exception. 0x004ba10f in IRState::call(TypeFunction*, tree_node*, tree_node*, Array*) ( this=0x15a5360, func_type=0x0, callable=0x1530fe0, object=0x1530fc0, arguments=0x15a04d0) at ../../gcc-4.0.3/gcc/d/d-codegen.cc:854 854 if (func_type==NULL) { int a=0; a=0/a; } Current language: auto; currently c++ (gdb) bt Array*) (this=0x15a5360, func_type=0x0, callable=0x1530fe0, object=0x1530fc0, arguments=0x15a04d0) at ../../gcc-4.0.3/gcc/d/d-codegen.cc:854 expr=0x15a0498, arguments=0x15a04d0) at ../../gcc-4.0.3/gcc/d/d-codegen.cc:824 at ../../gcc-4.0.3/gcc/d/d-glue.cc:1491 this=0x15a5360, exp=0x15a04f8, target_type=0x14b9018) at ../../gcc-4.0.3/gcc/d/d-codegen.cc:549 irs=0x15a5360) at ../../gcc-4.0.3/gcc/d/d-glue.cc:3607 irs=0x15a5360) at ../../gcc-4.0.3/gcc/d/d-glue.cc:3917 at ../../gcc-4.0.3/gcc/d/d-glue.cc:2636 at ../../gcc-4.0.3/gcc/d/d-glue.cc:2779 ../../gcc-4.0.3/gcc/d/d-lang.cc:1017 at ../../gcc-4.0.3/gcc/toplev.c:2157 at ../../gcc-4.0.3/gcc/main.c:35 (gdb) q Again, good luck!
Thanks for the reduced test case! The fix is in svn. David
Dec 06 2006
parent Downs <mathis.beer tu-ilmenau.de> writes:
David Friedman wrote:
 Thanks for the reduced test case!  The fix is in svn.
 
 David
And confirmed fixed. Thank you very much :D :warmfuzzyfeelingofgdcgenerichappiness: Greetings
Dec 07 2006