Bug 7480 – Unhelpful formatting specifier mismatch exception message for pointers

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-02-10T21:44:00Z
Last change time
2012-02-11T18:10:00Z
Keywords
patch
Assigned to
nobody
Creator
code

Comments

Comment #0 by code — 2012-02-10T21:44:45Z
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.
Comment #1 by code — 2012-02-10T21:51:44Z
Comment #2 by k.hara.pg — 2012-02-11T17:29:16Z
Comment #3 by github-bugzilla — 2012-02-11T18:10:00Z