www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Problem with compilation( DMD compile run failed with exit code -6 )

reply "Akzwar" <akzhigitov.anton gmail.com> writes:
We write new signal/slot system? like in QT.
https://github.com/dexset/descore/tree/de9ccae7a9907e5098f244a8683e42fb660d0b35/import/des/util/signal
https://github.com/dexset/descore/tree/de9ccae7a9907e5098f244a8683e42fb660d0b35/import/des/util/object

Unittests works fine, but after trying using it in our test 
application, we encountered a strange problem.
des/import/des/app/sdlevproc.d(57): Error: function 
des.util.signal.signal.Signal!(Vector!(2LU, int, "x 
y")).Signal.opCall (Vector!(2LU, int, "x y")) is not callable 
using argument types (MouseEvent)
But, one can pass to this method only mouse events, and event, 
that take Vector!(2LU, int, "x y") is in another class 
definition, and has another name. And there are few more errors 
like this.

Finally compilation crashes with exit code -6:
dmd: class.c:859: virtual void 
ClassDeclaration::semantic(Scope*): Assertion `type->ty != Tclass 
|| ((TypeClass *)type)->sym == this' failed.
FAIL 
.dub/build/application-debug-linux.posix-x86_64-dmd-9A2D5BEE385B
AEDFC08EE311E6172FC 
ftree executable

Test project:
https://github.com/deviator/fractaltree/tree/aea7ead22da7ffeaa55c9c74ef9e86b93bc60f8d

Does anyone has any suggestions about this issue?
Dec 17 2014
parent "H. S. Teoh via Digitalmars-d-learn" <digitalmars-d-learn puremagic.com> writes:
On Wed, Dec 17, 2014 at 03:13:27PM +0000, Akzwar via Digitalmars-d-learn wrote:
[...]
 Finally compilation crashes with exit code -6:
 dmd: class.c:859: virtual void ClassDeclaration::semantic(Scope*): Assertion
 `type->ty != Tclass || ((TypeClass *)type)->sym == this' failed.
[...] This is an ICE (internal compiler error). ICE's are *always* compiler bugs. Please file a critical bug on bugzilla (http://issues.dlang.org/). T -- Never ascribe to malice that which is adequately explained by incompetence. -- Napoleon Bonaparte
Dec 17 2014