[GHC] #10571: GHC 7.10.1 segfaults when shiftL-ing Integers by negative amounts
GHC
ghc-devs at haskell.org
Fri Jul 3 16:15:44 UTC 2015
#10571: GHC 7.10.1 segfaults when shiftL-ing Integers by negative amounts
-------------------------------------+-------------------------------------
Reporter: anders_ | Owner:
Type: bug | Status: new
Priority: high | Milestone:
Component: Compiler | Version: 7.10.1
Resolution: | Keywords:
Operating System: MacOS X | Architecture: x86_64
Type of failure: Runtime crash | (amd64)
Blocked By: | Test Case:
Related Tickets: | Blocking:
| Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by rwbarton):
Might not be possible inside integer-gmp for dependency reasons (`error`
is defined in base which depends on integer-gmp) but certainly possible in
the instance in Data.Bits. Having `shiftLInteger` itself crash on negative
shifts is fine IMHO as it's not intended for end-user use.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10571#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list