[GHC] #13644: overloaded name used in record pattern matching leads to panic! (the 'impossible' happened) in ghc

GHC ghc-devs at haskell.org
Thu May 4 11:17:27 UTC 2017


#13644: overloaded name used in record pattern matching leads to panic!  (the
'impossible' happened) in ghc
-------------------------------------+-------------------------------------
        Reporter:  pjljvdlaar        |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.2
      Resolution:                    |             Keywords:
Operating System:  Windows           |         Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  crash or panic                     |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by pjljvdlaar):

 The issue occurs on line 157 of TxsUtils.hs

 @simonpj. I doubt it: the scoping is important, otherwise a nice warning
 is generated.
 {{{
 C:\Users\pilaar\Desktop\TheMa\Experiments\Haskell\defs\src\TxsUtils.hs:157:37:
 error:
     Ambiguous occurrence `name'
     It could refer to either `TxsDefs.name',
                              imported from `TxsDefs' at
 src\TxsUtils.hs:26:1-14
                              (and originally defined in `Ident')
                           or `FuncId.name',
                              imported from `FuncId' at
 src\TxsUtils.hs:28:1-13
 }}}

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


More information about the ghc-tickets mailing list