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.
Reduced testcase: class Foo { Foo next; void start() in { assert (!next); } body { void* p = cast(void*)this; } }
A patch to dmd is in svn now.
thanks!
Works with r208. Thanks!
Fixed DMD1.050 and DMD2.035.
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル