[GHC] #12699: Suspicious treatment of renaming of field labels

GHC ghc-devs at haskell.org
Fri Feb 24 22:53:01 UTC 2017


#12699: Suspicious treatment of renaming of field labels
-------------------------------------+-------------------------------------
        Reporter:  bgamari           |                Owner:  ezyang
            Type:  bug               |               Status:  patch
        Priority:  normal            |            Milestone:
       Component:  Compiler (Type    |              Version:  8.1
  checker)                           |
      Resolution:                    |             Keywords:  backpack
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D3174
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Edward Z. Yang <ezyang@…>):

 In [changeset:"9d17028fbcecb53480598c4fcc7bd9e71b2ac7cf/ghc"
 9d17028f/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="9d17028fbcecb53480598c4fcc7bd9e71b2ac7cf"
 Record full FieldLabel in ifConFields.

 Summary:
 The previous implementation tried to be "efficient" by
 storing field names once in IfaceConDecls, and only just
 enough information for us to reconstruct the FieldLabel.
 But this came at a bit of code complexity cost.

 This patch undos the optimization, instead storing a full
 FieldLabel at each data constructor.  Consequently, this fixes
 bugs #12699 and #13250.

 Signed-off-by: Edward Z. Yang <ezyang at cs.stanford.edu>

 Test Plan: validate

 Reviewers: adamgundry, bgamari, austin

 Subscribers: thomie

 Differential Revision: https://phabricator.haskell.org/D3174
 }}}

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


More information about the ghc-tickets mailing list