digitalmars.D.bugs - [Issue 5837] New: Unable to format (writeln) an enum based on bool
- d-bugmail puremagic.com (33/33) Apr 11 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5837
- d-bugmail puremagic.com (11/11) Jun 02 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5837
- d-bugmail puremagic.com (11/11) Jun 06 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5837
http://d.puremagic.com/issues/show_bug.cgi?id=5837 Summary: Unable to format (writeln) an enum based on bool Product: D Version: D2 Platform: Other OS/Version: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: kennytm gmail.com --- Comment #0 from kennytm gmail.com 2011-04-11 14:07:08 PDT --- Test program: ---------------- import std.stdio; enum A : bool { no, yes } void main () { writeln(A.no); } ---------------- This results in an error: /usr/include/phobos/std/format.d(1599): Error: template std.format.formatValue(Writer,T,Char) if (is(const(T) == const(void[]))) formatValue(Writer,T,Char) if (is(const(T) == const(void[]))) matches more than one template declaration, /usr/include/phobos/std/format.d(868):formatValue(Writer,T,Char) if (is(T == enum)) and /usr/include/phobos/std/format.d(1079):formatValue(Writer,T,Char) if (is(T : bool)) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 11 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5837 kennytm gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch --- Comment #1 from kennytm gmail.com 2011-06-02 11:51:04 PDT --- Phobos pull #72. https://github.com/D-Programming-Language/phobos/pull/72 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 02 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5837 kennytm gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from kennytm gmail.com 2011-06-06 12:33:15 PDT --- https://github.com/D-Programming-Language/phobos/commit/0110322cb25ba1e6b3a5f5f7d3d9b055668d5f0d -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 06 2011