digitalmars.D.bugs - [Issue 11007] New: std.format.formattedRead with %*s specifier causes AssertError
- d-bugmail puremagic.com (30/30) Sep 10 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11007
http://d.puremagic.com/issues/show_bug.cgi?id=11007 Summary: std.format.formattedRead with %*s specifier causes AssertError Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: ttanjo gmail.com The following code throws AssertError with the message "format.d(3790): Format specifier not understood: %s" in dmd v2.064-devel-fe5dfc5 on Linux 64bit. It should throw an exception (not Error) or should be accepted. --- import std.format; void main() { string str = "foo bar buzz"; string a, b; formattedRead(str, "%s %*s %s", &a, &b); } --- If we use "%*d" instead of "%*s", it runs without errors. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 10 2013