AnyDSL / thorin

The Higher-Order Intermediate Representation
https://anydsl.github.io
GNU Lesser General Public License v3.0
151 stars 15 forks source link

Assertion `i < num_params()' failed #78

Closed ergawy closed 7 years ago

ergawy commented 7 years ago

I get the following assertion failure when I build Stincilla:

impala: /home/ergawy/anydsl/thorin/src/thorin/continuation.h:122: const thorin::Param* thorin::Continuation::param(size_t) const: Assertion `i < num_params()' failed.

num_params() is 0. Not sure if this is a bug or a problem with my build!

richardmembarth commented 7 years ago

I don't see this assertion here.

You're most likely linking against an old version of thorin. My guess is that you have both libthorin.a and libthorin.so lying around, one being outdated.

ergawy commented 7 years ago

Thanks. Erroneous linking was the problem.