#5515: panic! (the 'impossible' happened) with evil self-referential instance
---------------------------------+------------------------------------------
    Reporter:  andersk           |       Owner:                    
        Type:  bug               |      Status:  new               
    Priority:  normal            |   Component:  Compiler          
     Version:  7.3               |    Keywords:                    
    Testcase:                    |   Blockedby:                    
          Os:  Unknown/Multiple  |    Blocking:                    
Architecture:  Unknown/Multiple  |     Failure:  Compile-time crash
---------------------------------+------------------------------------------

Comment(by simonpj@…):

 commit 817d1b047b538e408a8758a18270c51d429de670
 {{{
 Author: Simon Peyton Jones <[email protected]>
 Date:   Thu Sep 29 16:05:16 2011 +0100

     Fix scoping for RHS of associated type decls (fixes Trac #5515)

     We should not allow things like

     class C a b where
       type F a :: *

     instance C (p,q) r where
       type F (p,q) = r   -- No! fvs(rhs) should be a subset
                          --     of fvs(lhs)

  compiler/hsSyn/HsDecls.lhs   |   11 ++++++++---
  compiler/rename/RnSource.lhs |   42
 ++++++++++++++++++++++++++----------------
  2 files changed, 34 insertions(+), 19 deletions(-)
 }}}

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to