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

GHC ghc-devs at haskell.org
Fri Dec 11 19:22:30 UTC 2015


#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
           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:
-------------------------------------+-------------------------------------
 Create any valid files A.hs and A.c, then run `ghc --make A.hs A.c`.
 You'll get one `A.o` file for `A.hs`; the `A.o` from `A.c` is lost to the
 sands of time.

 I thought this situation would be pretty unlikely but geekosaur mentioned
 to me that he had seen someone run into this problem before.

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


More information about the ghc-tickets mailing list