Bug 6996 – std.typecons calls writeln without importing std.stdio

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-11-23T11:18:00Z
Last change time
2012-01-04T06:42:05Z
Assigned to
nobody
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2011-11-23T11:18:13Z
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 by andrej.mitrovich — 2012-01-04T06:42:05Z
Seems to be fixed in 2.057.