digitalmars.D.bugs - [Issue 11299] New: Regression (2.064 git-head): formattedRead does not compile without -unittest
- d-bugmail puremagic.com (69/69) Oct 19 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11299
- d-bugmail puremagic.com (8/10) Oct 19 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11299
- d-bugmail puremagic.com (6/6) Oct 19 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11299
- d-bugmail puremagic.com (12/12) Oct 19 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11299
- d-bugmail puremagic.com (10/10) Oct 19 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11299
http://d.puremagic.com/issues/show_bug.cgi?id=11299 Summary: Regression (2.064 git-head): formattedRead does not compile without -unittest Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: pull Severity: regression Priority: P2 Component: Phobos AssignedTo: andrej.mitrovich gmail.com ReportedBy: andrej.mitrovich gmail.com 03:58:32 PDT --- ----- import std.format; import std.typecons; void main() { Tuple!(int, int) t; string s = "1 2"; formattedRead(s, "%s %s", &t); } ----- C:\dev\code\d_code>dmd test.d DMD v2.064 DEBUG C:\dmd-git\dmd2\windows\bin\..\..\src\phobos\std\format.d(578): Error: template instance isTuple!A template 'isT uple' is not defined C:\dmd-git\dmd2\windows\bin\..\..\src\phobos\std\format.d(588): Error: template std.format.unformatValue does no t match any function template declaration. Candidates are: C:\dmd-git\dmd2\windows\bin\..\..\src\phobos\std\format.d(3939): std.format.unformatValue(T, Range, Char) (ref Range input, ref FormatSpec!Char spec) if (isInputRange!Range && is(Unqual!T == bool)) C:\dmd-git\dmd2\windows\bin\..\..\src\phobos\std\format.d(3994): std.format.unformatValue(T, Range, Char) (ref Range input, ref FormatSpec!Char spec) if (isInputRange!Range && is(T == typeof(null))) C:\dmd-git\dmd2\windows\bin\..\..\src\phobos\std\format.d(4006): std.format.unformatValue(T, Range, Char) (ref Range input, ref FormatSpec!Char spec) if (isInputRange!Range && isIntegral!T && !is(T == enum)) C:\dmd-git\dmd2\windows\bin\..\..\src\phobos\std\format.d(4026): std.format.unformatValue(T, Range, Char) (ref Range input, ref FormatSpec!Char spec) if (isFloatingPoint!T && !is(T == enum)) C:\dmd-git\dmd2\windows\bin\..\..\src\phobos\std\format.d(4102): std.format.unformatValue(T, Range, Char) (ref Range input, ref FormatSpec!Char spec) if (isInputRange!Range && isSomeChar!T && !is(T == enum)) C:\dmd-git\dmd2\windows\bin\..\..\src\phobos\std\format.d(588): ... (4 more, -v to show) ... C:\dmd-git\dmd2\windows\bin\..\..\src\phobos\std\format.d(588): Error: template std.format.unformatValue(T, Rang e, Char)(ref Range input, ref FormatSpec!Char spec) if (isInputRange!Range && is(Unqual!T == bool)) cannot deduc e template function from argument types !(Tuple!(int, int))(string, FormatSpec!char) test.d(10): Error: template instance std.format.formattedRead!(string, char, Tuple!(int, int)*) error instantiat ing This is going to keep happening if we only run the test-suite with the -unittest flag. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 19 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11299 03:59:56 PDT ---This is going to keep happening if we only run the test-suite with the -unittest flag.Well actually, there's no other way to test the function. It's an interesting problem for sure. Anyway a pull is coming soon. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 19 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11299 04:01:37 PDT --- https://github.com/D-Programming-Language/phobos/pull/1651 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 19 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11299 Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/4ba3387b7d0045829ce426e6d25f2ae131d669f2 Fixes Issue 11299 - formattedRead does not compile without the -unittest flag due to missing import. https://github.com/D-Programming-Language/phobos/commit/b7a15da0324ba2c55a95b578ee5992328a085470 Issue 11299 - formattedRead does not compile without the -unittest flag -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 19 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11299 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 19 2013