Zulip Chat Archive

Stream: lean4

Topic: Compiler ICE


Henrik Böving (Mar 25 2022 at 00:43):

The 24-03 nightly has an ICE when declaring some module with the content:

inductive Step (α : Type u) where
  | impossible : α  Step α
  deriving Hashable

and importing it in some other module, the panic is:

error: PANIC at Lean.Expr.constName! Lean.Expr:624:19: constant expected

and most likely inside the Hashable derive handler since it disappears once that is removed

Notification Bot (Mar 25 2022 at 00:43):

Henrik Böving has marked this topic as resolved.

Notification Bot (Mar 25 2022 at 00:43):

Henrik Böving has marked this topic as unresolved.

Leonardo de Moura (Mar 25 2022 at 01:47):

Thanks for reporting the issue. Pushed a fix for this.

Leonardo de Moura (Mar 25 2022 at 01:47):

https://github.com/leanprover/lean4/commit/370e9c421f03ff93820909a30c602380725f1394


Last updated: Dec 20 2023 at 11:08 UTC