[GHC] #15460: Literals overflow

GHC ghc-devs at haskell.org
Sat Aug 25 11:36:21 UTC 2018


#15460: Literals overflow
-------------------------------------+-------------------------------------
        Reporter:  hsyl20            |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.8.1
       Component:  Compiler          |              Version:  8.4.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect result  |  Unknown/Multiple
  at runtime                         |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by RolandSenn):

 With GHC 8.4.2 I could reproduce the error. However GHC 8.6.0-20180810
 (8.6.1-beta1) seems to work:


 {{{
 roland at goms:~/Projekte/ghctest/T15460$ ghc --version
 The Glorious Glasgow Haskell Compilation System, version 8.4.2
 roland at goms:~/Projekte/ghctest/T15460$ ghc -O2 T15460.hs
 [1 of 1] Compiling Main             ( T15460.hs, T15460.o )
 Linking T15460 ...
 roland at goms:~/Projekte/ghctest/T15460$ ./T15460
 "Oups"

 roland at goms:~/Projekte/ghctest/T15460$ switchghc 8.6.1
 The Glorious Glasgow Haskell Compilation System, version 8.6.0.20180810
 roland at goms:~/Projekte/ghctest/T15460$ rm *.hi | rm *.o
 roland at goms:~/Projekte/ghctest/T15460$ ghc -O2 T15460.hs
 [1 of 1] Compiling Main             ( T15460.hs, T15460.o )
 Linking T15460 ...
 roland at goms:~/Projekte/ghctest/T15460$ ./T15460
 "Ok"
 }}}

 Do you want a patch containing only a testcase?

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


More information about the ghc-tickets mailing list