#2327: -O flag produces faulty code
-----------------------------+----------------------------------------------
    Reporter:  orenbenkiki   |       Owner:          
        Type:  bug           |      Status:  new     
    Priority:  normal        |   Component:  Compiler
     Version:  6.9           |    Severity:  normal  
    Keywords:  Optimizer -O  |    Testcase:          
Architecture:  Unknown       |          Os:  Unknown 
-----------------------------+----------------------------------------------
 The -O flag generates incorrect code in both 6.8.2 and 6.9.

 I tested it myself on 6.8.2 - The -O flag causes the program to enter a
 100% CPU endless loop

 Heffalump also tested it on 6.9 - The -O flag causes it to segfault

 Attached is a tgz file containing the code (and the input).

 ghc --make -o obk Main.hs ; obk -> works

 ghc --make -o obk -O Main.hs ; obk -> fails

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