diku-dk / futhark

:boom::computer::boom: A data-parallel functional programming language
http://futhark-lang.org
ISC License
2.41k stars 166 forks source link

Internal compiler error: Use of unknown variable #2099

Closed nqpz closed 10 months ago

nqpz commented 10 months ago

The Futhark program

def numbers: []i32 = [ 100 ] ++ (0..<10)
entry main = numbers

gives me the error message

After internalisation:
In expression of statement
  {dim_match_5172 : ({}, bool)}
In subexp d₈_4500
Use of unknown variable d₈_4500.

with futhark c from git.

athas commented 10 months ago

How strange. I remember fixing bugs like this before.