[Bug 164] New: Internal compiler error with foreach
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue May 30 04:54:05 PDT 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=164
Summary: Internal compiler error with foreach
Product: GDC
Version: 0.18
Platform: Macintosh
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: glue layer
AssignedTo: dvdfrdmn at users.sf.net
ReportedBy: csantander619 at gmail.com
//----------------
class Baz
{
int opApply (int delegate(inout int) dg)
{
int i;
return dg(i);
}
}
class Foo
{
Baz baz;
int foo (int delegate() dg)
{
foreach (b; baz)
if (bar ())
if (dg ())
break;
return 0;
}
bool bar ()
{}
}
//----------------
$ gdc -c -g test.d
test.d: En la función ‘__foreachbody1’:
test.d:16: 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.
--
More information about the D.gnu
mailing list