www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Bug 120] New: Phobos modules fail to compile with -w switch

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/bugzilla/show_bug.cgi?id=120

           Summary: Phobos modules fail to compile with -w  switch
           Product: D
           Version: 0.156
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: a.solovey gmail.com


Using -w switch produces errors in these Phobos modules:
std/base64.d
std/bitarray.d
std/boxer.d
std/conv.d
std/date.d
std/dateparse.d
std/demangle.d
std/format.d
std/math.d
std/math2.d
std/mmfile.d
std/regexp.d
std/socket.d
std/socketstream.d
std/stream.d
std/string.d
std/thread.d
std/uri.d
std/zip.d
std/zlib.d
std/c/windows/windows.d
std/c/windows/winsock.d
std/typeinfo/ti_Along.d
std/typeinfo/ti_Aulong.d
std/typeinfo/ti_void.d
std/windows/registry.d


-- 
Apr 30 2006
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/bugzilla/show_bug.cgi?id=120





------- Comment #1 from a.solovey gmail.com  2006-04-30 22:11 -------
This causes problems when the program importing one of those modules is being
compiled with 'dmd -w -release -inline'. For example, this code fails to
compile, producing 97 error messages:
// compile with '-w -release -inline'
import std.stdio;
int main( char[][] args )
{
    writefln( "Hello, world!" );
    return 0;
}


-- 
Apr 30 2006