Skip to content

Segfault on variable in let expression for output statement #771

Closed

Description

@CervEdin

The following results in a segfault in MiniZinc 2.7.6

output let { var 0..0: Y } in
[  show(Y) ++ "\n" ];

as does

output let { var 0..0: Y; constraint Y == 0 } in
[ show(Y) ++ "\n", ];

but this doesn't

output let { var 0..0: Y = 0 } in
[ show(Y) ++ "\n", ];

and neither does

int: y = 0;
output let { var 0..0: Y = y } in
[ show(Y) ++ "\n", ];

Activity

  1. self-assigned this
    on Jan 3, 2024
  2. added
    resolvedIssue is resolved and the feature or fix will be part of next release
    on Jan 3, 2024
  3. added a commit that references this issue on Jan 3, 2024
    33cf554
  4. added theissue type on Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

resolvedIssue is resolved and the feature or fix will be part of next release

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions