[GHC] #13625: GHC internal error: ‘Y’ is not in scope during type checking, but it passed the renamer

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[GHC] #13625: GHC internal error: ‘Y’ is not in scope during type checking, but it passed the renamer

GHC - devs mailing list
#13625: GHC internal error: ‘Y’ is not in scope during type checking, but it passed
the renamer
-------------------------------------+-------------------------------------
           Reporter:  mpickering     |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.0.1
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 {{{
 {-# LANGUAGE TypeInType #-}
 data X :: Y where Y :: X
 }}}

 The error message is:

 {{{
 Bug.hs:2:11: error: …
     • GHC internal error: ‘Y’ is not in scope during type checking, but it
 passed the renamer
       tcl_env of environment: [r1cR :-> APromotionErr TyConPE]
     • In the kind ‘Y’
 }}}

 Originally reported by @mietek in #11821

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

_______________________________________________
ghc-tickets mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-tickets
Reply | Threaded
Open this post in threaded view
|

Re: [GHC] #13625: GHC internal error: ‘Y’ is not in scope during type checking, but it passed the renamer

GHC - devs mailing list
#13625: GHC internal error: ‘Y’ is not in scope during type checking, but it passed
the renamer
-------------------------------------+-------------------------------------
        Reporter:  mpickering        |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:  TypeInType
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by goldfire):

 * keywords:   => TypeInType


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

_______________________________________________
ghc-tickets mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-tickets
Reply | Threaded
Open this post in threaded view
|

Re: [GHC] #13625: GHC internal error: ‘Y’ is not in scope during type checking, but it passed the renamer

GHC - devs mailing list
In reply to this post by GHC - devs mailing list
#13625: GHC internal error: ‘Y’ is not in scope during type checking, but it passed
the renamer
-------------------------------------+-------------------------------------
        Reporter:  mpickering        |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:  TypeInType
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Simon Peyton Jones <simonpj@…>):

 In [changeset:"2501fb70691f80b9c48e5f9bdea3b897653f499a/ghc"
 2501fb70/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="2501fb70691f80b9c48e5f9bdea3b897653f499a"
 Fix scoping of data cons during kind checking

 Trac #13625 pointed out that in

    data X :: Y where Y :: X

 we need 'Y' to be in scope (as APromotionErr) when dealing with
 X's kind signature.  Previously we got a crash.

 This patch simplifies the code as well as making it work.
 }}}

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

_______________________________________________
ghc-tickets mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-tickets
Reply | Threaded
Open this post in threaded view
|

Re: [GHC] #13625: GHC internal error: ‘Y’ is not in scope during type checking, but it passed the renamer

GHC - devs mailing list
In reply to this post by GHC - devs mailing list
#13625: GHC internal error: ‘Y’ is not in scope during type checking, but it passed
the renamer
-------------------------------------+-------------------------------------
        Reporter:  mpickering        |                Owner:  (none)
            Type:  bug               |               Status:  merge
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:  TypeInType
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
                                     |  polykinds/T13625
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by simonpj):

 * status:  new => merge
 * testcase:   => polykinds/T13625


Comment:

 Thanks for reporting.  Perhaps worth merging, but it only affects
 incorrect programs.

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

_______________________________________________
ghc-tickets mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-tickets
Reply | Threaded
Open this post in threaded view
|

Re: [GHC] #13625: GHC internal error: ‘Y’ is not in scope during type checking, but it passed the renamer

GHC - devs mailing list
In reply to this post by GHC - devs mailing list
#13625: GHC internal error: ‘Y’ is not in scope during type checking, but it passed
the renamer
-------------------------------------+-------------------------------------
        Reporter:  mpickering        |                Owner:  (none)
            Type:  bug               |               Status:  closed
        Priority:  normal            |            Milestone:  8.2.1
       Component:  Compiler          |              Version:  8.0.1
      Resolution:  fixed             |             Keywords:  TypeInType
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
                                     |  polykinds/T13625
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by bgamari):

 * status:  merge => closed
 * resolution:   => fixed
 * milestone:   => 8.2.1


Comment:

 Merged to `ghc-8.2` as 2fb2b60ebc6a649b8345bbb491a253972c973978.

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

_______________________________________________
ghc-tickets mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-tickets