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

Monomorphisation does not variable-ize size expressions properly #2136

Closed
athas opened this issue Apr 27, 2024 · 0 comments
Closed

Monomorphisation does not variable-ize size expressions properly #2136

athas opened this issue Apr 27, 2024 · 0 comments
Assignees

Comments

@athas
Copy link
Member

athas commented Apr 27, 2024

def test (a: i64) (b: i64) (f: [a*b]f32 -> [a*b]f32) (g: [a*b]f32 -> [a*b]f32) =
  g (f (replicate (a*b) 0))

entry main a b =
  let h = test a b
  in h reverse reverse

Monomorphisation produces references to variables that do not exist, with resulting explosive effects later in the compiler.

@athas athas self-assigned this Apr 27, 2024
@athas athas closed this as completed in 1a508eb Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant