Skip to content

Unused stack variable “may not be initialized” #680

Closed
@vbgl

Description

@vbgl

Compilation of the program below fails with:

variable allocation: variable “s.159” (declared at "bug_680.jazz", line 3 (12-13)) may not be initialized

export
fn adc_stack(reg u64 x) {
  stack u64 s;
  s = 0;
  _, s += x;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions