Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,332
    • Issues 4,332
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 370
    • Merge Requests 370
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #18118

Closed
Open
Opened Apr 30, 2020 by idontgetoutmuch@idontgetoutmuch

Panic (dsImpSpecs) when specializing non-INLINE function with -O

Summary

<no location info>: error:
    ghc: panic! (the 'impossible' happened)
  (GHC version 8.6.5 for x86_64-unknown-linux):
        dsImpSpecs
  getRandomPrimFromRandomGenState
  Call stack:
      CallStack (from HasCallStack):
        callStackDoc, called at compiler/utils/Outputable.hs:1160:37 in ghc:Outputable
        pprPanic, called at compiler/deSugar/DsBinds.hs:725:28 in ghc:DsBinds
Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

ghc: panic! (the ‘impossible’ happened)
  (GHC version 8.8.3 for x86_64-apple-darwin):
        dsImpSpecs
  getRandomPrimFromRandomGenState
  Call stack:
      CallStack (from HasCallStack):
        callStackDoc, called at compiler/utils/Outputable.hs:1159:37 in ghc:Outputable
        pprPanic, called at compiler/deSugar/DsBinds.hs:730:28 in ghc:DsBinds
Please report this as a GHC bug:  https://www.haskell.org/ghc/reportabug

Steps to reproduce

https://github.com/haskell-numerics/random-fu/commit/85af2544728e4b71fbb9c66972a0782a3178b74f

nix-build release.nix

Expected behavior

Not panic.

Environment

  • GHC version used: 8.6.5 and 8.8.3

Optional:

  • Operating System:
  • System Architecture:

See https://circleci.com/gh/haskell-numerics/random-fu/4

Edited May 06, 2020 by Ryan Scott
Assignee
Assign to
8.10.3
Milestone
8.10.3
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#18118