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

Internal compiler error after 'simplify' #1455

Closed
PhilipBorgesen opened this issue Sep 1, 2021 · 0 comments
Closed

Internal compiler error after 'simplify' #1455

PhilipBorgesen opened this issue Sep 1, 2021 · 0 comments

Comments

@PhilipBorgesen
Copy link
Contributor

PhilipBorgesen commented Sep 1, 2021

Using Futhark 0.20.1 this little piece of silly code produces an internal compiler error irrespective of backend:

entry test [n] (xs: *[n]i32) =
  loop s = ([0i32], xs) for i < n do 
    (copy xs[i:i+1], s.1)

The compiler outputs:

Internal compiler error.
Please report this at https://github.com/diku-dk/futhark/issues.
Type error after pass 'simplify':
In function entry_test
When checking the body aliases: [[], [xs_4626], [xs_4626]]
A unique tuple element of return value of function entry_test is aliased to some other tuple component.

The documentation for copy says

Copy a value. The result will not alias anything.

EDIT: Simplified code sample.

@athas athas closed this as completed in 6f36829 Sep 1, 2021
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