Quantcast

[GHC] #7197: ghc panic: Irrefutable pattern failed

classic Classic list List threaded Threaded
2 messages Options
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[GHC] #7197: ghc panic: Irrefutable pattern failed

GHC
#7197: ghc panic: Irrefutable pattern failed
--------------------------------+-------------------------------------------
 Reporter:  illusionoflife      |          Owner:                
     Type:  bug                 |         Status:  new          
 Priority:  normal              |      Component:  Compiler      
  Version:  7.4.2               |       Keywords:                
       Os:  Linux               |   Architecture:  x86_64 (amd64)
  Failure:  Compile-time crash  |       Testcase:                
Blockedby:                      |       Blocking:                
  Related:                      |  
--------------------------------+-------------------------------------------
 I get following error, when trying to compile following snippet:
 {{{
 module BooleanFunction where

 class BooleanFunction a where
   arity :: a -> Int

 instance BooleanFunction Bool where
   arity _ = 0
 instance BooleanFunction a => BooleanFunction  Bool -> a where
   arity _ = 1 + arity a
 }}}
 {{{
 [1 of 1] Compiling BooleanFunction  ( BooleanFunction.hs,
 BooleanFunction.o )
 ghc: panic! (the 'impossible' happened)
   (GHC version 7.4.2 for x86_64-unknown-linux):
         compiler/rename/RnSource.lhs:430:14-81: Irrefutable pattern failed
 for pattern Data.Maybe.Just (inst_tyvars,
                                                         _,
                                                         SrcLoc.L _ cls,
                                                         _)


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

 }}}

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7197>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: [GHC] #7197: ghc panic: Irrefutable pattern failed

GHC
#7197: ghc panic: Irrefutable pattern failed
---------------------------------+------------------------------------------
  Reporter:  illusionoflife      |          Owner:                
      Type:  bug                 |         Status:  closed        
  Priority:  normal              |      Milestone:                
 Component:  Compiler            |        Version:  7.4.2        
Resolution:  duplicate           |       Keywords:                
        Os:  Linux               |   Architecture:  x86_64 (amd64)
   Failure:  Compile-time crash  |     Difficulty:  Unknown      
  Testcase:                      |      Blockedby:                
  Blocking:                      |        Related:                
---------------------------------+------------------------------------------
Changes (by simonpj):

  * status:  new => closed
  * difficulty:  => Unknown
  * resolution:  => duplicate


Comment:

 Thanks.  Always worth searching Trac first... this is just a dup of #7093,
 #7079, #7039, #6051.  Already fixed, happily.

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7197#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Loading...