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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Tomoya Tanjo <[email protected]> 2013-09-10 07:48:43 PDT ---
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: -------