Bug 163 – Internal compiler error with nested functions

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
PowerPC
OS
Linux
Creation time
2006-05-30T06:48:00Z
Last change time
2015-06-09T05:15:04Z
Assigned to
dvdfrdmn
Creator
casantander1

Comments

Comment #0 by casantander1 — 2006-05-30T06:48:49Z
//---------------- class Foo { void bar (void * src) { void baz (void function (void *, uint) xyz) { uint foo (void [] dst) { uint len = dst.length; dst [0 .. len] = src [0 .. len]; xyz (dst, len); return len; } } } } //---------------- $ gdc -c -g test.d test.d: En la función ‘foo’: test.d:13: error interno del compilador: Violación de segmento Por favor envíe un reporte completo de bichos, con el código preprocesado si es apropiado. Vea <URL:http://gcc.gnu.org/bugs.html> para más instrucciones.
Comment #1 by casantander1 — 2006-05-30T06:53:08Z
*** Bug 162 has been marked as a duplicate of this bug. ***
Comment #2 by dvdfrdmn — 2006-06-03T08:51:10Z
I cannot reproduce this. Which version of GCC did you build against? Was it a clean build?
Comment #3 by dvdfrdmn — 2006-06-03T09:19:06Z
I didn't see this was PowerPC Linux. Can reproduce now.
Comment #4 by dvdfrdmn — 2006-06-03T14:04:27Z
Fixed in SF subversion. For incremental builds, re-apply patch-gcc-4.0.x.