asoffer / Icarus

An experimental general-purpose programming language
Apache License 2.0
9 stars 2 forks source link

Casting an index expression crashes #93

Closed perimosocordiae closed 2 years ago

perimosocordiae commented 2 years ago
foo: [4; bool]
foo[0] as i64

Error message:

[140686612305736 ./ast/node.xmacro.h:24 Visit] Unreachable code-path.
(Index)
*** SIGABRT received at time=1638562121 on cpu 0 ***
PC: @     0x7ff427970808  (unknown)  pthread_kill
    @          0x1933800         64  absl::WriteFailureInfo()
    @          0x19334e4        224  absl::AbslFailureSignalHandler()
    @     0x7ff42791c520  (unknown)  (unknown)
Aborted (core dumped)