[Issue 7882] New: Cannot initialize static array member in ctor
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Apr 9 18:55:30 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7882
Summary: Cannot initialize static array member in ctor
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: hsteoh at quickfur.ath.cx
--- Comment #0 from hsteoh at quickfur.ath.cx 2012-04-09 18:56:12 PDT ---
Code:
struct S {
const(int)[4] data;
this(const(int)[4] d) {
data = d;
}
}
void main() {
S s;
}
Compiler output:
test.d(4): Error: slice this.data[] is not mutable
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list