#1202: Using -prof -auto-all can generate name clashes
-------------------------+--------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.7
Severity: normal | Keywords:
Difficulty: Unknown | Testcase:
Architecture: Unknown | Os: Unknown
-------------------------+--------------------------------------------------
Here is a simple example:
-----
module A where
afoo :: Bool -> Bool
afoo x = x
-----
module Aa where
foo :: Int -> Int
foo x = x
-----
import A
import Aa
main = print 42
-----
Compile with 'ghc -prof -auto-all --make Main.hs' and observe:
-----
A.o:fake:(.data+0x30): multiple definition of `Aafoo_cc'
Aa.o:fake:(.data+0x30): first defined here
-----
-- Lennart
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1202>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs