[Issue 2102] New: Invalid code generated with nested delegates
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon May 12 14:03:15 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2102
Summary: Invalid code generated with nested delegates
Product: DGCC aka GDC
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: glue layer
AssignedTo: dvdfrdmn at users.sf.net
ReportedBy: jeffdavey at submersion.com
Currently on Ubuntu 8.04 with the packaged GDC 4.2.3, given this code:
import tango.io.Stdout;
void main()
{
char[] blah;
void myFunc()
{
void myOtherFunc()
{
blah ~= "Hello there";
Stdout(blah).newline;
}
myOtherFunc;
}
myFunc;
}
It segfaults when trying to access "blah" in the myOtherFunc delegate.
Using a separate Ubuntu 7.10 box with GDC 4.1, it works as expected (I see
"Hello There").
--
More information about the D.gnu
mailing list