[GHC] #8755: Happy parser file compilation causes panic

GHC ghc-devs at haskell.org
Sun Feb 9 04:18:58 UTC 2014


#8755: Happy parser file compilation causes panic
---------------------------------------+----------------------------------
        Reporter:  wting               |            Owner:
            Type:  bug                 |           Status:  closed
        Priority:  normal              |        Milestone:
       Component:  Compiler            |          Version:  7.6.3
      Resolution:  duplicate           |         Keywords:
Operating System:  Unknown/Multiple    |     Architecture:  x86_64 (amd64)
 Type of failure:  Compile-time crash  |       Difficulty:  Unknown
       Test Case:                      |       Blocked By:
        Blocking:                      |  Related Tickets:
---------------------------------------+----------------------------------
Changes (by goldfire):

 * status:  new => closed
 * resolution:   => duplicate


Comment:

 This seems to be fixed in 7.8:

 {{{
 23:18:03 ~/temp/bug> ghc --version
 The Glorious Glasgow Haskell Compilation System, version 7.8.20140130
 23:18:06 ~/temp/bug> ghc DeclareParse.hs
 [1 of 4] Compiling Base             ( Base.hs, Base.o )
 [2 of 4] Compiling Lexer            ( Lexer.hs, Lexer.o )
 [3 of 4] Compiling Declare          ( Declare.hs, Declare.o )
 [4 of 4] Compiling DeclareParse     ( DeclareParse.hs, DeclareParse.o )

 DeclareParse.hs:177:11: Not in scope: data constructor ‛Subtract’

 DeclareParse.hs:193:11: Not in scope: data constructor ‛Multiply’

 DeclareParse.hs:202:11: Not in scope: data constructor ‛Divide’
 }}}

 For the record, I was able to produce this with 7.6.3.

 Thanks for reporting!

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


More information about the ghc-tickets mailing list