[Issue 11197] New: [DMD 2.064a] Struct with postblit cannot be appended to an AA of arrays

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 8 07:45:59 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11197

           Summary: [DMD 2.064a] Struct with postblit cannot be appended
                    to an AA of arrays
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: sludwig at outerproduct.org


--- Comment #0 from Sönke Ludwig <sludwig at outerproduct.org> 2013-10-08 07:45:58 PDT ---
---
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

-- 
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