http://d.puremagic.com/issues/show_bug.cgi?id=7480
Summary: Unhelpful formatting specifier mismatch exception
message for pointers
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 klickverbot <[email protected]> 2012-02-10 21:44:45 PST
---
Currently (2.058 Git), the following snippet triggers a generic enforce()
exception without any further information:
---
import std.stdio;
void main() {
int a;
writefln("%d", &a);
}
---
A FormatException with a helpful message should be thrown instead.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------