www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9431] New: Tuple creation problem with array of array

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

           Summary: Tuple creation problem with array of array
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc


--- Comment #0 from bearophile_hugs eml.cc 2013-01-31 02:13:56 PST ---
import std.typecons: Tuple;
void main() {
    alias T = Tuple!(int[1][]);
    auto t = T([[10]]);
}



DMD 2.062alpha:

...\dmd2\src\phobos\std\typecons.d(405): Error: cannot implicitly convert
expression (_param_0) of type int[][] to int[1u][]
test.d(4): Error: template instance
std.typecons.Tuple!(int[1u][]).Tuple.__ctor!(int[][]) error instantiating

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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
           Platform|x86                         |All
         OS/Version|Windows                     |All


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2013-04-05 11:28:36 PDT ---
https://github.com/D-Programming-Language/phobos/pull/1243

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



--- Comment #2 from github-bugzilla puremagic.com 2013-04-13 10:23:56 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/b80cbad1cc11ca93375076568cbd07c9f3de0697
fix Issue 9431 - Tuple creation problem with array of array

https://github.com/D-Programming-Language/phobos/commit/80f80b7cdfe8e7bea9c93bcd8c4d59aaf234b104
Merge pull request #1243 from 9rnsr/fix9431

Issue 9431 - Tuple creation problem with array of array

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


Alex Rønne Petersen <alex lycus.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |alex lycus.org
         Resolution|                            |FIXED


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