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,273
    • Issues 4,273
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 413
    • Merge Requests 413
  • 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
  • #5829

Closed
Open
Opened Jan 29, 2012 by Ian Lynagh <igloo@earth.li>@trac-igloo

break003, break006, print019 fail with a DEBUG compiler

break003 fails with a DEBUG compiler:

$ cat Test3.hs
mymap f [] = []
mymap f (x:xs) = f x:mymap f xs

main = mapM_ putStrLn $ mymap ('a':) ["hello","bye"] 
$ ghci Test3.hs 
GHCi, version 7.4.0.20120126: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
[1 of 1] Compiling Main             ( Test3.hs, interpreted )
Ok, modules loaded: Main.
*Main> :b 2
Breakpoint 0 activated at Test3.hs:2:18-31
*Main> main
Stopped at Test3.hs:2:18-31
_result :: [a] = _
f :: t -> a = _
x :: t = _
xs :: [t] = [_]
[Test3.hs:2:18-31] *Main> f
ghc-stage2: panic! (the 'impossible' happened)
  (GHC version 7.4.0.20120126 for x86_64-apple-darwin):
        ASSERT failed! file compiler/typecheck/TcEnv.lhs line 427
( it{v am5} [lid] :: ( t{tv Im0} [rt] :: ghc-prim:GHC.Prim.*{(w) tc 34d} )
                     -> ( a{tv Im1} [rt] :: ghc-prim:GHC.Prim.*{(w) tc 34d} ) )
( t{tv Im0} [rt] :: ghc-prim:GHC.Prim.*{(w) tc 34d} )
-> ( a{tv Im1} [rt] :: ghc-prim:GHC.Prim.*{(w) tc 34d} )

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

[Test3.hs:2:18-31] *Main>

break006 and print019 fail similarly.

Edited Mar 09, 2019 by Ian Lynagh <igloo@earth.li>
Assignee
Assign to
7.6.1
Milestone
7.6.1
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#5829