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



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



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




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


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