D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6996 - std.typecons calls writeln without importing std.stdio
Summary: std.typecons calls writeln without importing std.stdio
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: Other Windows
: P2 major
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-23 11:18 UTC by Andrej Mitrovic
Modified: 2012-01-04 06:42 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 Andrej Mitrovic 2011-11-23 11:18:13 UTC
Compiling std.typecons with the switch "debug=RefCounted" enables debugging functions which call writeln, but there are no imports to stdio.

Now, in my case the CairoD library uses the debug=RefCounted switch to enable its own debugging methods.

As a result, building a CairoD project via e.g. xfbuild will fail, because xfbuild *manually* compiles phobos modules and propagates that debug switch. So std.typecons ends up getting the switch, and there are writeln() calls everywhere enabled by it but no imports to std.stdio.

In short, std.typecons.d needs to be fixed!
Comment 1 Andrej Mitrovic 2012-01-04 06:42:05 UTC
Seems to be fixed in 2.057.