#5844: Panic on generating Core code
--------------------------------+-------------------------------------------
 Reporter:  JamesFisher         |          Owner:                
     Type:  bug                 |         Status:  new           
 Priority:  normal              |      Component:  Compiler      
  Version:  7.4.1               |       Keywords:                
       Os:  Linux               |   Architecture:  x86_64 (amd64)
  Failure:  Compile-time crash  |       Testcase:                
Blockedby:                      |       Blocking:                
  Related:                      |  
--------------------------------+-------------------------------------------

Comment(by JamesFisher):

 This appears to be caused by the presence of the literal {{{1}}} in
 certain typing contexts.  It crashes when I place the following in the
 position of {{{1}}} in the above test:

 {{{
 0
 2
 3 [...]
 (-1)
 (fromIntegral 1)
 [1,2]
 (Just 1)
 (toInteger 5)
 (1 :: Integer)
 (1 :: Rational)
 }}}

 It does NOT crash when replaced with:

 {{{
 1e3
 0x45
 (1 :: Int)
 "foo"
 'a'
 ("foo" :: Integer)
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5844#comment:1>
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