[GHC] #1658: CSE changes semantics

GHC trac at galois.com
Sun Sep 2 20:08:21 EDT 2007


#1658: CSE changes semantics
-----------------------+----------------------------------------------------
  Reporter:  guest     |          Owner:          
      Type:  bug       |         Status:  new     
  Priority:  normal    |      Milestone:          
 Component:  Compiler  |        Version:  6.7     
  Severity:  normal    |       Keywords:          
Difficulty:  Unknown   |             Os:  Multiple
  Testcase:            |   Architecture:  Multiple
-----------------------+----------------------------------------------------
Create file:

 main = print $ 1/0 - 1/0

 Compile with -O0, it outputs: NaN

 Compile with -O1, it outputs: 0.0

 Compile with -O1 -fno-cse, it outputs: NaN

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


More information about the Glasgow-haskell-bugs mailing list