Thread overview
[Issue 2166] New: More stuff that doesn't compile in Phobos
Jun 24, 2008
d-bugmail
Jun 27, 2008
d-bugmail
Jul 10, 2008
d-bugmail
June 24, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2166

           Summary: More stuff that doesn't compile in Phobos
           Product: D
           Version: 1.032
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: ary@esperanto.org.ar


I'm opening this bug after #2092 in order to have them separated.

std.stream
----------
Line 2419: em.fixBO(x3,12);

I get "std/stream.d: function fixBO (void*,uint) does not match parameter types
(ubyte[12],int)"
(and another error following that)

Same goes for line 2443.

I'm not sure about this, but casting the first argument (x3) to void* solved the problem. Maybe a static ubyte[] was allowed to be implicitly cast to void* in a previous D version.

Don suggestion was:

I think it should be .ptr, not a cast to void *, eg

    em.fixBO(x3.ptr,12);


-- 

June 27, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2166





------- Comment #1 from bugzilla@digitalmars.com  2008-06-27 16:44 -------
Don's right. For some reason the fix is in 2.0 Phobos, but is not in 1.0.


-- 

July 10, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2166


bugzilla@digitalmars.com changed:

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




------- Comment #2 from bugzilla@digitalmars.com  2008-07-09 22:44 -------
Fixed dmd 1.032


--