You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect the following to generate code printing the offset of the unit field, but it looks like invalid code is generated so this does not compile
$ spicyc -j foo.spicy/private/var/folders/ht/vtb0rkbd4ws15vx02xdb84zw0000gn/T/foo_4401a488ba3fc7e5-8f847f58a5b1b22b.cc:322:44: error: no member named 'offset' in 'std::optional<hilti::rt::stream::SafeConstIterator>'; did you mean to use '->' instead of '.'? ::hilti::rt::print((*__self).__position.offset(), ::hilti::rt::Bool(true)); ^ ->1 error generated.[error] spicy-driver: JIT compilation failed
The text was updated successfully, but these errors were encountered:
We declared this member to return an iterator, but potentially returned
an optional iterator. This patch add an additional deref so we get the
correct value.
Closes#1508.
I would expect the following to generate code printing the offset of the unit field, but it looks like invalid code is generated so this does not compile
The text was updated successfully, but these errors were encountered: