http://d.puremagic.com/issues/show_bug.cgi?id=6996

           Summary: std.typecons calls writeln without importing std.stdio
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: Phobos
        AssignedTo: nob...@puremagic.com
        ReportedBy: andrej.mitrov...@gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2011-11-23 
11:18:13 PST ---
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!

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to