#5971: Referencing a newName in a VarE without definition triggers "the 
impossible
happened"
--------------------------------+-------------------------------------------
 Reporter:  josh                |          Owner:                  
     Type:  bug                 |         Status:  new             
 Priority:  normal              |      Component:  Compiler        
  Version:  7.4.1               |       Keywords:                  
       Os:  Unknown/Multiple    |   Architecture:  Unknown/Multiple
  Failure:  Compile-time crash  |       Testcase:                  
Blockedby:                      |       Blocking:                  
  Related:                      |  
--------------------------------+-------------------------------------------

Comment(by simonpj@…):

 commit cb5a3f2d66e4dac2f6f44f56e365d18df884c943
 {{{
 Author: Simon Peyton Jones <[email protected]>
 Date:   Wed Mar 28 09:57:57 2012 +0100

     Make the LocalRdrEnv keep track of all the Names that are in scope

     This allows us to give a sensible error message when a Template
 Haskell
     splice generates an occurrence without a binding site.

     Fixes Trac #5959 and #5971

  compiler/basicTypes/Name.lhs    |    2 +-
  compiler/basicTypes/RdrName.lhs |   36
 +++++++++++++++++++++++++-----------
  compiler/rename/RnEnv.lhs       |   25 ++++++++++++++++++++++---
  compiler/rename/RnNames.lhs     |    6 +++---
  compiler/rename/RnTypes.lhs     |    2 +-
  5 files changed, 52 insertions(+), 19 deletions(-)
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5971#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