#3828: Error in array index
-------------------------+--------------------------------------------------
    Reporter:  CBa       |        Owner:                    
        Type:  bug       |       Status:  new               
    Priority:  normal    |    Milestone:  _|_               
   Component:  Compiler  |      Version:  6.12.1            
    Keywords:  sunos     |   Difficulty:                    
          Os:  Solaris   |     Testcase:                    
Architecture:  sparc     |      Failure:  Compile-time crash
-------------------------+--------------------------------------------------

Comment(by simonmar):

 Replying to [comment:5 simonpj]:
 > GHC 6.8 gave this kind of error if it found a .hi file written by a
 different version of GHC.  (Since improved.)

 I don't think that's it - here's the code that checks hi file versions in
 GHC 6.8:

 {{{
   let our_ver = show opt_HiVersion
   when (check_ver /= our_ver) $
         -- This will be caught by readIface which will emit an error
         -- msg containing the iface module name.
     throwDyn (ProgramError (
         "mismatched interface file versions: expected "
         ++ our_ver ++ ", found " ++ check_ver))
 }}}

 In fact, GHC has checked hi file versions since 6.4.

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