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

regression: stack-overflow when validating recursive data-structures in initialization code #1350

Open
mhasel opened this issue Oct 24, 2024 · 0 comments
Labels
bug Something isn't working regression This used to work, but no longer does

Comments

@mhasel
Copy link
Member

mhasel commented Oct 24, 2024

regressed commit: 41968d3

When compiling the following cyclic data-structures:

FUNCTION_BLOCK bar
VAR
    f : foo;
    ff AT f : foo;
END_VAR
END_FUNCTION_BLOCK

FUNCTION_BLOCK foo
VAR
    f : bar;
END_VAR
END_FUNCTION_BLOCK

the cycle will be reported during validation, but when the generated init-functions are validated afterwards, validate_assignment_type_sizes seems to be called ad infinum.

@mhasel mhasel added bug Something isn't working regression This used to work, but no longer does labels Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression This used to work, but no longer does
Projects
None yet
Development

No branches or pull requests

1 participant