Skip to content

Commit

Permalink
Fix #2016.
Browse files Browse the repository at this point in the history
  • Loading branch information
athas committed Sep 7, 2023
1 parent 9062d9f commit 8430d77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
* Rarely occurring deadlock for fused map-scan compositions in CUDA
backend, when a bounds check failed in the map function.

* Compiler and interpreter crash for tricky interactions of abstract
types and sizes (#2016). Solved by banning such uses - in principle
this could break code.

## [0.25.3]

### Added
Expand Down
4 changes: 2 additions & 2 deletions src/Language/Futhark/Prop.hs
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ traverseDims f = go mempty PosImmediate

onTypeArg bound b (TypeArgDim d) =
TypeArgDim <$> f bound b d
onTypeArg bound b (TypeArgType t) =
TypeArgType <$> go bound b t
onTypeArg bound _ (TypeArgType t) =
TypeArgType <$> go bound PosReturn t

-- | Return the uniqueness of a type.
uniqueness :: TypeBase shape Uniqueness -> Uniqueness
Expand Down

0 comments on commit 8430d77

Please sign in to comment.