[GHC] #10792: Bounded Enums [minBound..maxBound] produces runtime error

GHC ghc-devs at haskell.org
Mon Aug 31 08:59:31 UTC 2015


#10792: Bounded Enums [minBound..maxBound] produces runtime error
-------------------------------------+-------------------------------------
        Reporter:                    |                   Owner:  ekmett
  AlexanderThiemann                  |
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Core Libraries    |                 Version:  7.10.2
      Resolution:                    |                Keywords:
Operating System:  Linux             |            Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Runtime crash     |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by AlexanderThiemann):

 I've tried to consistently reproduce the bug but it only happens in maybe
 5-10% of all runs (see also
 https://github.com/agrafix/Spock/issues/44#issuecomment-134899484 ). Since
 removing the minBound..maxBound calls the bug seems to have gone away. Is
 there any non deterministic behavior in Enums/Bounded?

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10792#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list