www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7889] New: writeln of array of tuple of const too

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

           Summary: writeln of array of tuple of const too
           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.stdio, std.typecons;
void main() {
    Tuple!(const(int))[] a;
    writeln(a);
}


DMD 2.059beta4:

...\dmd2\src\phobos\std\format.d(1573): Error: static assert 
(isInputRange!(Tuple!(const(int))[])) is false
...\dmd2\src\phobos\std\format.d(2572):        instantiated from here:
formatValue!(LockingTextWriter,Tuple!(const(int))[],char)
...\dmd2\src\phobos\std\format.d(398):        instantiated from here:
formatGeneric!(LockingTextWriter,Tuple!(const(int))[],char)
...\dmd2\src\phobos\std\stdio.d(687):        instantiated from here:
formattedWrite!(LockingTextWriter,char,Tuple!(const(int))[])
...\dmd2\src\phobos\std\stdio.d(1574):        instantiated from here:
write!(Tuple!(const(int))[],char)
test.d(4):        instantiated from here: writeln!(Tuple!(const(int))[])

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 11 2012
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7889


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

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



*** This issue has been marked as a duplicate of issue 6336 ***

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