"Partial" pattern match causes segfault at runtime #2469
Labels
backend: ghc
Haskell code generation backend ("MAlonzo")
backend: js
JavaScript generation backend
compiler-treeless
type: bug
Issues and pull requests about actual bugs
varying-arity
Milestone
Using Agda 2.5.2, the following code type checks, but when executed (
agda -c crash.agda && ./crash
), it segfaults.This was also tested using Agda 2.5.1.1, where it fails to type check with the following message:
If one looks closely, the pattern matching for
f
is complete, so it may be that the type checker was made smarter for 2.5.2, but somewhere the runtime is still unable to work out the logic.The text was updated successfully, but these errors were encountered: