[Issue 6996] New: std.typecons calls writeln without importing std.stdio

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 23 11:19:08 PST 2011


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: nobody at puremagic.com
        ReportedBy: andrej.mitrovich at gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at 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: -------


More information about the Digitalmars-d-bugs mailing list