Skip to content
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

Internal compiler warning: found a statement without source information. #1334

Closed
brucelynnzkm opened this issue Aug 4, 2023 · 0 comments · Fixed by #1340
Closed

Internal compiler warning: found a statement without source information. #1334

brucelynnzkm opened this issue Aug 4, 2023 · 0 comments · Fixed by #1340

Comments

@brucelynnzkm
Copy link

Hi, all. When i am trying to compile the following code,
//////////////////////////////////code_start//////////////////////////////////////////
struct record {
field[32] rec;
}

def updateRec(record mut states, u32 rec, field value) -> record {
states.rec[rec] = value;
return states;
}

def main(record mut states, u32 rec, field value) -> record{
return updateRec(states, rec, value);
}
///////////////////////////code end///////////////////////////////////////////////////

i got the following warnings:

Internal compiler warning: found a statement without source information. Please open an issue https://github.com/Zokrates/ZoKrates/issues/new?template=bug_report.md

how can i fix the warning? thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant