[GHC] #4090: Impossible compilation with primitive operations
(possibly unsafeCoerce#)
GHC
cvs-ghc at haskell.org
Mon May 24 05:32:00 EDT 2010
#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
More information about the Glasgow-haskell-bugs
mailing list