
#12355: Invalid assembly in foreign prim -------------------------------------+------------------------------------- Reporter: osa1 | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.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 bgamari): Something is indeed quite fishy. The C-- for this code is as follows, {{{ [section ""data" . Lib.f1_closure" { Lib.f1_closure: const Lib.f1_info; }, Lib.f1_entry() // [R2] { info_tbl: [(cG7, label: Lib.f1_info rep:HeapRep static { Fun {arity: 1 fun_type: ArgSpec 4} })] stack_info: arg_space: 8 updfr_space: Just 8 } {offset cG7: _B1::I64 = R2; goto cG9; cG9: R1 = _B1::I64; call (R1) args: 8, res: 0, upd: 8; } }] }}} It looks like the target is being pretty-printed as `mempty`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12355#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler