www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: sludwig outerproduct.org



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: -------
Oct 08 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11197


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid



https://github.com/D-Programming-Language/dmd/pull/2643

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 08 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11197


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



Fixed:

https://github.com/D-Programming-Language/dmd/commit/b5cc8954a8e3dc7f9469718a898d1aa51a64a6ba

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 09 2013