[GHC] #11201: ghc --make on Haskell and non-Haskell inputs can silently clobber input

GHC ghc-devs at haskell.org
Wed Jan 20 23:22:21 UTC 2016


#11201: ghc --make on Haskell and non-Haskell inputs can silently clobber input
-------------------------------------+-------------------------------------
        Reporter:  ezyang            |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.11
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect result  |  Unknown/Multiple
  at runtime                         |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by rwbarton):

 Here is a real-life example with an added twist:
 http://stackoverflow.com/questions/34823628/calling-haskell-from-c
 -getting-multiple-definition-of-main-linker-error

 On the one hand, seeing occurrences of this confusing people "in the wild"
 argues towards doing something; but on the other hand, this particular
 instance illustrates how it is tricky to do something correct. How do we
 know whether `inc.o` and `Inc.o` are names that refer to the same file?

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


More information about the ghc-tickets mailing list