Bug 11197 – [DMD 2.064a] Struct with postblit cannot be appended to an AA of arrays

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-10-08T07:45:00Z
Last change time
2013-10-09T06:33:40Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
sludwig

Comments

Comment #0 by sludwig — 2013-10-08T07:45:58Z
--- struct S { this(bool) {} this(this) {} } void main() { S[][string] test; test["test"] ~= S.init; } --- Yields: source\app.d(11): Error: constructor app.S.this (bool _param_0) is not callable using argument types (void) Removing the constructor yields: source\app.d(8): Error: expression __cpcttmp3.__cpctor(__aaval2) is void and has no value
Comment #1 by k.hara.pg — 2013-10-08T09:15:44Z
Comment #2 by k.hara.pg — 2013-10-09T06:33:40Z