D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7480 - Unhelpful formatting specifier mismatch exception message for pointers
Summary: Unhelpful formatting specifier mismatch exception message for pointers
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2012-02-10 21:44 UTC by David Nadlinger
Modified: 2012-02-11 18:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description David Nadlinger 2012-02-10 21:44:45 UTC
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.