#4090: Impossible compilation with primitive operations (possibly unsafeCoerce#)
---------------------------------+------------------------------------------
  Reporter:  malosh              |          Owner:         
      Type:  bug                 |         Status:  closed 
  Priority:  normal              |      Milestone:         
 Component:  Compiler            |        Version:  6.12.1 
Resolution:  invalid             |       Keywords:         
Difficulty:                      |             Os:  MacOS X
  Testcase:                      |   Architecture:  x86    
   Failure:  Compile-time crash  |  
---------------------------------+------------------------------------------
Changes (by simonmar):

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


Comment:

 `unsafeCoerce#` isn't guaranteed to work between integral types and
 floating point types, see the documentation:
 [http://www.haskell.org/ghc/docs/6.12.2/html/libraries/ghc-prim-0.2.0.0
 /GHC-Prim.html#v%3AunsafeCoerce%23].

 There should really be a primitive to let you do this - feel free to open
 a separate feature request.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4090#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to