#1714: GHC crashes when encountering arrow syntax
-------------------------------------------+--------------------------------
    Reporter:  [EMAIL PROTECTED]  |        Owner:           
        Type:  bug                         |       Status:  closed   
    Priority:  high                        |    Milestone:  6.8.1    
   Component:  Compiler                    |      Version:  6.8      
    Severity:  critical                    |   Resolution:  duplicate
    Keywords:                              |   Difficulty:  Unknown  
          Os:  Linux                       |     Testcase:           
Architecture:  x86                         |  
-------------------------------------------+--------------------------------
Changes (by ross):

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

Old description:

> Compiling the following code makes GHC 6.8.20070916 crash:
> {{{
> {-# LANGUAGE Arrows #-}
> module ArrowSyntax where
>     import Control.Arrow
>
>     arrow :: (Arrow arrow) => arrow () ()
>     arrow = proc () -> do returnA -< ()
> }}}
> The message is:
> {{{
> ghc-6.8.0.20070916: panic! (the 'impossible' happened)
>   (GHC version 6.8.0.20070916 for i386-unknown-linux):
>         initC: srt_lbl
>
> Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
> }}}
> I encountered the same behavior with other expressions using arrow
> syntax, so the arrow syntax really seems to be the cause of this panic.

New description:

 Compiling the following code makes GHC 6.8.20070916 crash:
 {{{
 {-# LANGUAGE Arrows #-}
 module ArrowSyntax where
     import Control.Arrow

     arrow :: (Arrow arrow) => arrow () ()
     arrow = proc () -> do returnA -< ()
 }}}
 The message is:
 {{{
 ghc-6.8.0.20070916: panic! (the 'impossible' happened)
   (GHC version 6.8.0.20070916 for i386-unknown-linux):
         initC: srt_lbl

 Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
 }}}
 I encountered the same behavior with other expressions using arrow syntax,
 so the arrow syntax really seems to be the cause of this panic.

Comment:

 same as #1662

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1714>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to