www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10220] New: `array` doesn't work with disabled default construction

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10220

           Summary: `array` doesn't work with disabled default
                    construction
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: verylonglogin.reg gmail.com



22:06:03 MSD ---
Bacause of phobos pull 1305 [1] there is now `new E[]` code in `arrayAllocImpl`
which fails to compile if `E` disabled default construction.

[1] https://github.com/D-Programming-Language/phobos/pull/1305

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 31 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10220




Test case:

import std.algorithm : equal;
import std.range : repeat;
import std.array;

static struct S
{
    int val;

     disable this();
    this(int v) { val = v; }
}
void main()
{
    auto r = S(1).repeat(2).array();
    assert(equal(r, [S(1), S(1)]));
}

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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull



https://github.com/D-Programming-Language/phobos/pull/1329

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




Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/924232603ac6cd0f48d46a8b5e8227ada62808c5
fix Issue 10220 - `array` doesn't work with disabled default construction

https://github.com/D-Programming-Language/phobos/commit/7b0a1219fd7ff945ecac360ac1572e93b88f4de1


[REG2.064a] Issue 10220 - `array` doesn't work with disabled default
construction

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




Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/51a5bad3e6fe48d8c9f34d975876eb5cac2486e3
Improve Issue 10220 fix.



Issue URL: http://d.puremagic.com/issues/show_bug.cgi?id=10220

https://github.com/D-Programming-Language/phobos/commit/ea97f5b6c090bf8434ae9a5d39ea5fca26fb6a8d


Improve Issue 10220 fix.

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


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

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


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