-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
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
ICE: unreachable code #4497
Comments
@nventuro would you be able to come up with a minimal reproduction that relies less on Aztec.nr? That'd be super helpful to ease our further debugging. |
I was unable - I tried replicating this by creating a second crate and calling a function declared there, but doing so I ended up triggering a different ICE: see #4517. The original example shown here does not rely that much on aztec-nr however, even though there's a |
Ah sorry I meant also and perhaps more importantly Aztec macros, not just Aztec.nr. As there could be the possibility that the bug lies within the macros, it'd be great to get a macro-less reproduction to better identify where the problem lies. |
Closing this as this seems to be more of an aztec_macros issue than Noir. |
Aim
I run into an ICE while performing routine development.
Expected Behavior
I expected to not run into an ICE?
Bug
I get the following error message:
I produced a relatively minimal example, in which calling a trivial
unconstrained
function triggers the ICE, and calling a copy of that function that is constrained does not.To Reproduce
The example can be found in this commit.
git checkout a3b17b9472677e967651886f1fd2cff4d9f76ef8
cd noir-projects/noir-contracts/
nargo compile --package ice_contract --silence-warnings
If the call to
view_notes
is commented out and the call toview_notes_constrained
is uncommented, there's no compilation error. Both functions are identical except for theunconstrained
modifier.Project Impact
Blocker
Impact Context
No response
Workaround
None
Workaround Description
No response
Additional Context
No response
Installation Method
Compiled from source
Nargo Version
nargo version = 0.24.0 noirc version = 0.24.0+edaef211ea08832b1aaabcfc8b3f2419c3a2184c (git version hash: edaef211ea08832b1aaabcfc8b3f2419c3a2184c, is dirty: false)
NoirJS Version
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: