digitalmars.D.bugs - [Issue 7889] New: writeln of array of tuple of const too
- d-bugmail puremagic.com (34/34) Apr 11 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7889
- d-bugmail puremagic.com (11/11) Apr 11 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7889
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 --- Comment #0 from bearophile_hugs eml.cc 2012-04-11 05:09:17 PDT --- 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
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 --- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2012-04-11 06:33:19 PDT --- *** 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