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

Bug in nested in-place array initialization #182

Closed
marcauberer opened this issue Aug 7, 2022 · 1 comment · Fixed by #185
Closed

Bug in nested in-place array initialization #182

marcauberer opened this issue Aug 7, 2022 · 1 comment · Fixed by #185
Assignees
Labels
bug Something isn't working difficulty-medium Fixing the issue is medium difficulty
Milestone

Comments

@marcauberer
Copy link
Member

Nested in-place array initialization does not work at the moment.

Example code:

int[vertexCount][vertexCount] graph =
        { { 0, 4, 0, 0, 0, 0, 0, 8, 0 },
        { 4, 0, 8, 0, 0, 0, 0, 11, 0 },
        { 0, 8, 0, 7, 0, 4, 0, 0, 2 },
        { 0, 0, 7, 0, 9, 14, 0, 0, 0 },
        { 0, 0, 0, 9, 0, 10, 0, 0, 0 },
        { 0, 0, 4, 14, 10, 0, 2, 0, 0 },
        { 0, 0, 0, 0, 0, 2, 0, 1, 6 },
        { 8, 11, 0, 0, 0, 0, 1, 0, 7 },
        { 0, 0, 2, 0, 0, 0, 6, 7, 0 } };

The compiler crashes with an assertion failure

@marcauberer marcauberer added the bug Something isn't working label Aug 7, 2022
@marcauberer marcauberer added this to the 0.11.0 milestone Aug 7, 2022
@marcauberer marcauberer self-assigned this Aug 7, 2022
@marcauberer marcauberer added the difficulty-medium Fixing the issue is medium difficulty label Aug 7, 2022
@marcauberer
Copy link
Member Author

After that bug is fixed, test if the Spice example for Dijkstra's algorithm works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working difficulty-medium Fixing the issue is medium difficulty
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant