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

compiler crash with cyclic-referencing classes #299

Open
Akuli opened this issue Mar 4, 2023 · 1 comment
Open

compiler crash with cyclic-referencing classes #299

Akuli opened this issue Mar 4, 2023 · 1 comment

Comments

@Akuli
Copy link
Owner

Akuli commented Mar 4, 2023

class Foo:
    bar: Bar

class Bar:
    foo: Foo

Expected result: a clear error message that explains what is wrong
Actual result: compiler crashes

If one of the two members is a pointer (e.g. foo: Foo*), this works as expected. You must use a pointer somewhere, just like in C, but if you don't, there should be a clear error message.

@Akuli Akuli changed the title segfault with cyclic-referencing classes compiler crash with cyclic-referencing classes Mar 4, 2023
@Akuli
Copy link
Owner Author

Akuli commented Dec 12, 2024

Related to #473

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

No branches or pull requests

1 participant