
#13442: Add a coercion/cast operator to CMM -------------------------------------+------------------------------------- Reporter: erikd | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.4.1 Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by rwbarton): In particular, an actual cast is problematic as your original purpose here was precisely to implement a word to double cast operation. It seems like the goal of adding this cast is to slip past Cmm's type checking, but as there actually is a well-typed way to do what you want in Cmm, it would be better to do that; and add input Cmm syntax for it if necessary. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13442#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler