[Issue 3392] New: a cast of this to void in tango.core.Thread is not allowed

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 13 04:40:51 PDT 2009


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

           Summary: a cast of this to void in tango.core.Thread is not
                    allowed
           Product: D
           Version: 1.048
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: fawzi at gmx.ch


--- Comment #0 from Fawzi Mohamed <fawzi at gmx.ch> 2009-10-13 04:40:50 PDT ---
Tango does not compile (just ./build/build.sh ), but stops with an error

{{{
.../Thread.d(659): Error: e2ir: cannot cast from tango.core.Thread.Thread to
void*
}}}

this is just a cast of this to void*, even rewriting the lines like this
{{{
                void *arg=cast(void*)cast(Object)this;
                if( pthread_create( &m_addr, &attr, &thread_entryPoint, arg )
!= 0 )
}}}

gives an error casting this.

Unfortunately just about any reduced example work...

both 1.048 and 1.049 have this issue, it is a blocker for tango.

-- 
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