Bug 1453 – internal compiler error: Segmentation fault

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2007-08-29T15:04:00Z
Last change time
2015-06-09T05:14:57Z
Assigned to
dvdfrdmn
Creator
mariusmuja

Comments

Comment #0 by mariusmuja — 2007-08-29T15:04:37Z
Hi, I'm getting the following compiler cash: test.d: In member function 'bar': test.d:12: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. when I'm compiling the following code with gdc 0.24: private class A { A[] childs; void foo() { static int b = 0; } void bar() { if (childs.length!=0) { int n = childs.length; float vec[] = new float[n]; } } } I'm not sure if the problem is with gdc, it might be gcc's code generator/optimizer fault. I'm saying this because the crash only happens when using the -O2 and -O3 compiler flags.
Comment #1 by dvdfrdmn — 2007-08-31T20:46:02Z
Fixed in svn rev 150 / release 0.25