[GHC] #10588: BangPat gets wrong SrcSpan.

GHC ghc-devs at haskell.org
Mon Jun 29 19:12:29 UTC 2015


#10588: BangPat gets wrong SrcSpan.
-------------------------------------+-------------------------------------
        Reporter:  mpickering        |                   Owner:
            Type:  bug               |                  Status:  patch
        Priority:  normal            |               Milestone:  7.10.2
       Component:  Compiler          |                 Version:  7.10.1
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  None/Unknown      |  Unknown/Multiple
      Blocked By:                    |               Test Case:
 Related Tickets:                    |                Blocking:
                                     |  Differential Revisions:  Phab:D1020
-------------------------------------+-------------------------------------

Comment (by Alan Zimmerman <alan.zimm@…>):

 In [changeset:"c6bb2fc50716a2fc540d55ecddbc5c14e94979f7/ghc"]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="c6bb2fc50716a2fc540d55ecddbc5c14e94979f7"
 Correct BangPat SrcSpan calculation

 Summary:
 Previously when the split was performed in splitBang, `BangPat` was given
 the
 same SrcSpan as the whole of the LHS of the declaration. This patch
 correctly calculates the value.

 Reviewers: alanz, austin

 Reviewed By: alanz, austin

 Subscribers: thomie, bgamari

 Differential Revision: https://phabricator.haskell.org/D1020

 GHC Trac Issues: #10588
 }}}

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


More information about the ghc-tickets mailing list