www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6996] New: std.typecons calls writeln without importing std.stdio

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: andrej.mitrovich gmail.com



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: -------
Nov 23 2011
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6996


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



06:42:05 PST ---
Seems to be fixed in 2.057.

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