[Issue 1766] New: segfault writing to a string variable...
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 2 15:17:39 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1766
Summary: segfault writing to a string variable...
Product: DGCC aka GDC
Version: 0.24
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: glue layer
AssignedTo: dvdfrdmn at users.sf.net
ReportedBy: funisher at gmail.com
gentoo gdc 0.24, x86_64, no cflags
here is a simple test case:
void main() {
string lala = " ";
lala[0] = '1';
}
however, reading is fine...
void main() {
string lala;
lala = "-----";
printf("%c %d", lala[0], lala.length); // prints '- 5'
}
--
More information about the D.gnu
mailing list