[GHC] #7898: Compiler diverges when compiling module BSP of frag-1.1.2

GHC cvs-ghc at haskell.org
Wed May 8 17:24:01 CEST 2013


#7898: Compiler diverges when compiling module BSP of frag-1.1.2
-------------------------------+--------------------------------------------
Reporter:  tinctorius          |          Owner:                  
    Type:  bug                 |         Status:  new             
Priority:  normal              |      Component:  Compiler        
 Version:  7.6.3               |       Keywords:                  
      Os:  Unknown/Multiple    |   Architecture:  Unknown/Multiple
 Failure:  Compile-time crash  |      Blockedby:                  
Blocking:                      |        Related:                  
-------------------------------+--------------------------------------------

Comment(by tinctorius):

 `-O2` seems to be the culprit. When removing the flag from the Cabal file,
 it'll compile. Eventually.

 {{{
 diff --git a/frag.cabal b/frag.cabal
 index 8893fb0..3c32cdf 100644
 --- a/frag.cabal
 +++ b/frag.cabal
 @@ -85,7 +85,6 @@ Executable frag
     Main-is:             Main.hs
     Build-Depends:       base==4.*, GLUT, OpenGL>=2.0, array, random
     Hs-source-dirs:      src
 -   Ghc-options:         -O2 -funbox-strict-fields -fvia-C -optc-O2
     Extensions:          BangPatterns,
                          FunctionalDependencies,
                          FlexibleInstances,
 }}}

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



More information about the ghc-tickets mailing list