[GHC] #14868: -O -g breaks string literals
GHC
ghc-devs at haskell.org
Mon Mar 19 11:45:57 UTC 2018
#14868: -O -g breaks string literals
-------------------------------------+-------------------------------------
Reporter: akio | Owner: (none)
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 8.5
Resolution: duplicate | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Incorrect result | Unknown/Multiple
at runtime | Test Case:
Blocked By: | Blocking:
Related Tickets: #14779, #14123 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by osa1):
bgamari, is this supposed to be fixed in GHC 8.4.1? I can reproduce this
error:
{{{
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.4.1
$ cat Main.hs
{-# OPTIONS -O -g #-}
main = print (4, "foo")
$ ghc Main.hs
[1 of 1] Compiling Main ( Main.hs, Main.o )
Linking Main ...
$ ./Main
(4,"\248m@")
}}}
I tried with both DWARF and non-DWARF build.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14868#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list