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

Reject uninitialized variable #724

Open
2 tasks
Y-Nak opened this issue May 27, 2022 · 0 comments
Open
2 tasks

Reject uninitialized variable #724

Y-Nak opened this issue May 27, 2022 · 0 comments
Assignees
Labels
comp: analyzer Everything that involves the analyzer pass comp: mir comp: parser

Comments

@Y-Nak
Copy link
Member

Y-Nak commented May 27, 2022

What is wrong?

Currently, we don't perform analysis for uninitialized variable use. This could potentially lead to unintentional error.

How can it be fixed

  • Add an array repeat expression `[Value; N] to make an array creation easier.
  • Perform the analysis on MIR.
@Y-Nak Y-Nak added comp: parser comp: analyzer Everything that involves the analyzer pass comp: mir labels May 27, 2022
@Y-Nak Y-Nak self-assigned this May 27, 2022
@Y-Nak Y-Nak mentioned this issue Jun 3, 2022
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp: analyzer Everything that involves the analyzer pass comp: mir comp: parser
Projects
None yet
Development

No branches or pull requests

2 participants