We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following program:
module test; type Key = unit {a: uint8;}; global m: map<Key, uint8>; m[[$a=1]] = 1; print m;
...causes spicy to abort with a failed assertion:
spicy
$ spicyc -j assert_fails_map_key_types.spicy spicyc: /home/simeon/tmp/spicy/hilti/toolchain/src/compiler/codegen/types.cc:673: hilti::detail::visitor::Visitor<hilti::detail::codegen::CxxTypes, {anonymous}::VisitorStorage, hilti::Node, hilti::detail::visitor::Order::Pre>::result_t {anonymous}::VisitorStorage::operator()(const hilti::type::Struct&, hilti::detail::visitor::Visitor<hilti::detail::codegen::CxxTypes, {anonymous}::VisitorStorage, hilti::Node, hilti::detail::visitor::Order::Pre>::position_t): Assertion `typeID(p.node)' failed. Aborted (core dumped)
This may be a duplicate of #1233 (i.e., perhaps this is expected but not checked for by the parser and documented as unsupported).
The text was updated successfully, but these errors were encountered:
Like #1238, will need some digging what's going on.
Sorry, something went wrong.
Fix another assertion with anonymous struct constructor.
5c64aca
The struct type's ID could end up not making it across the Spicy-to-HILTI boundary. Closes #1234.
fcdc6f5
rsmmr
Successfully merging a pull request may close this issue.
The following program:
...causes
spicy
to abort with a failed assertion:This may be a duplicate of #1233 (i.e., perhaps this is expected but not checked for by the parser and documented as unsupported).
The text was updated successfully, but these errors were encountered: