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
Compiler will issue an error explaining that an out-of-bounds array access has occurred with the original source location of the error, the index value, and the array length.
Bug
Compiler hits an unreachable expression and panics:
thread 'main' panicked at 'index out of bounds: the len is 5 but the index is 6', crates/noirc_evaluator/src/ssa/anchor.rs:137:13
stack backtrace:
0: rust_begin_unwind
[...]
To reproduce
Run the example code above with nargo prove p
Additional context
The current panic message is fine, but being issued from a panic is confusing to users since calls to unreachable are usually indicative of a compiler crash rather than an intended error reporting. We should thread Location data down to these Load/Store instructions in SSA so that we can issue an error in the same format as other compiler errors.
The text was updated successfully, but these errors were encountered:
* master:
Rename methods that use `conditionalize` to be more descriptive (#739)
feat(noir)!: Returned values are no longer required by the prover (#731)
chore: explicit versions for dependencies (#727)
chore: readability improvements (#726)
feat(nargo): include short git commit in cli version output (#721)
Remove print to console for named proofs in `nargo prove` (#718)
chore: clean up serde-related dependencies (#722)
Handle out-of-bound errors in CSE (#471) (#673)
Remove unused dependencies and only use workspace inheritance on shared deps (#671)
feat(std_lib)!: modulus bits/bytes methods, and to_bits -> to_le_bits (#697)
Implement numeric generics (#620)
Review some TODO in SSA (#698)
Replace `toml_map_to_field` and `toml_remap` with traits to map between `InputValue`s and `TomlTypes` (#677)
Apply witness visibility on a parameter level rather than witness level (#712)
Description
Aim
Attempted to write an invalid noir program:
Expected behavior
Compiler will issue an error explaining that an out-of-bounds array access has occurred with the original source location of the error, the index value, and the array length.
Bug
Compiler hits an
unreachable
expression and panics:To reproduce
nargo prove p
Additional context
The current panic message is fine, but being issued from a panic is confusing to users since calls to
unreachable
are usually indicative of a compiler crash rather than an intended error reporting. We should threadLocation
data down to these Load/Store instructions in SSA so that we can issue an error in the same format as other compiler errors.The text was updated successfully, but these errors were encountered: