Skip to content

Build errors, invalid casts #2

@susnux

Description

@susnux

I try to compile this project for your updated version of abagames-tumiki-fighters.
But when trying to build it I get following error with ldc2 (0.16.1):

/usr/bin/ldc2  -wi -I=/home/abuild/rpmbuild/BUILD/BulletML-20141116/src   -of=CMakeFiles/bulletml.dir/runner.d.o -c /home/abuild/rpmbuild/BUILD/BulletML-20141116/src/bulletml/runner.d
[   50s] /usr/include/d/std/variant.d(2230): Error: cannot implicitly convert expression (variant.peek()) of type const(Bullet)* to Bullet*
[   50s] /usr/include/d/std/variant.d(2230): Error: cannot implicitly convert expression (variant.peek()) of type const(Action)* to Action*
[   50s] /usr/include/d/std/variant.d(2230): Error: cannot implicitly convert expression (variant.peek()) of type const(Fire)* to Fire*
[   50s] /usr/include/d/std/variant.d(2087): Error: template instance bulletml.runner.GroupRunner.this.visitImpl!(false, const(VariantN!(152LU, Bullet, Action, Fire)), delegate (Action action)
[   50s] {
[   50s] this.runners ~= cast(BulletMLRunner)new ActionRunner(manager, orientation, action);
[   50s] }
[   50s] , function ()
[   50s] {
[   50s] }
[   50s] ) error instantiating
[   50s] /home/abuild/rpmbuild/BUILD/BulletML-20141116/src/bulletml/runner.d(93):        instantiated from here: tryVisit!(const(VariantN!(152LU, Bullet, Action, Fire)))
[   50s] /home/abuild/rpmbuild/BUILD/BulletML-20141116/src/bulletml/runner.d(344): Warning: statement is not reachable
[   50s] /home/abuild/rpmbuild/BUILD/BulletML-20141116/src/bulletml/runner.d(344): Warning: statement is not reachable
[   50s] /home/abuild/rpmbuild/BUILD/BulletML-20141116/src/bulletml/runner.d(507): Warning: statement is not reachable
[   50s] src/bulletml/CMakeFiles/bulletml.dir/build.make:87: recipe for target 'src/bulletml/CMakeFiles/bulletml.dir/runner.d.o' failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions