#5905: ghc with incorrect arguments deletes source file
-------------------------------------------+--------------------------------
  Reporter:  dowski                        |          Owner:                  
      Type:  bug                           |         Status:  closed          
  Priority:  normal                        |      Milestone:                  
 Component:  Compiler                      |        Version:  7.0.3           
Resolution:  wontfix                       |       Keywords:                  
        Os:  Linux                         |   Architecture:  Unknown/Multiple
   Failure:  Compile-time performance bug  |     Difficulty:  Unknown         
  Testcase:                                |      Blockedby:                  
  Blocking:                                |        Related:                  
-------------------------------------------+--------------------------------
Changes (by simonmar):

  * status:  new => closed
  * difficulty:  => Unknown
  * resolution:  => wontfix


Comment:

 `ghc` is just calling `ld`, it is `ld` that unlinks the output file.
 `gcc` behaves exactly the same way:

 {{{
 $ touch foo.c
 $ gcc . -o foo.c
 /usr/bin/ld: .: No such file: File format not recognized
 collect2: ld returned 1 exit status
 $ ls foo.c
 ls: cannot access foo.c: No such file or directory
 }}}

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