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

initialize local VAR CONSTANT function vars #669

Merged
merged 1 commit into from
Dec 2, 2022

Conversation

riederm
Copy link
Collaborator

@riederm riederm commented Nov 30, 2022

aggregate local constant variables (in functions) used to have problems if they were not properly initialized. Instead of forcing an initializer, we fallback to the type's default value or zeroinitializer.

added regression test for a previously failing situation

fixes #634

aggregate local constant variables (in functions) used to have
problems if they were not properly initialized. Instead of forcing an
initializer, we fallback to the type's default value or zeroinitializer.

added regression test for a previously failing situation

fixes #634
@riederm riederm requested a review from ghaith December 1, 2022 07:37
@riederm riederm merged commit 11c90ba into master Dec 2, 2022
@riederm riederm deleted the 634_default_value_for_constants branch December 2, 2022 07:41
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 this pull request may close these issues.

un-initialized constants report unresolved constant variable while they should get their default value
2 participants