Bug in CorePrep.lhs

Simon Peyton-Jones simonpj at microsoft.com
Fri May 24 06:33:45 EDT 2002


Strange.   You fix definitely isn't the Right Thing, but there's clearly
something wrong going on.

Can you give more details please?  I.e. give source code and
what commands you executed to show up the bug?

Thanks

Simon

| -----Original Message-----
| From: Kirsten Chevalier [mailto:krc at uclink.berkeley.edu] 
| Sent: 24 May 2002 09:09
| To: glasgow-haskell-bugs at haskell.org
| Subject: Bug in CorePrep.lhs
| 
| 
| Using more or less the latest version of GHC from CVS, I was 
| getting error messages from the assembler that complained 
| about duplicate definitions of closures for various data 
| constructors. I changed lines 109-113 of 
| coreSyn/CorePrep.lhs as follows:
| 
|    binds_out = initUs_ us (
| 			  corePrepTopBinds (md_binds 
| mod_details)	`thenUs` \ floats1 -> {-
| 			  corePrepTopBinds implicit_binds 	
| `thenUs` \ floats2 -> -}
| 			  returnUs (deFloatTop (floats1 {- 
| `appOL` floats2 -}))
| 			)
| 
| and that seems to fix it. I don't know whether this breaks 
| anything else, but there's definitely a bug.
| 
| -- 
| Kirsten Chevalier * krc at uclink.berkeley.edu * Often in error, 
| never in doubt _______________________________________________
| Glasgow-haskell-bugs mailing list 
| Glasgow-haskell-bugs at haskell.org 
| http://www.haskell.org/mailman/listinfo/glasgow-| haskell-bugs
| 



More information about the Glasgow-haskell-bugs mailing list