https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66531
Bug ID: 66531 Summary: Source file deleted when we use gcc compile Product: gcc Version: unknown Status: RESOLVED Severity: enhancement Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: yongjin.ohn at lge dot com CC: mpolacek at gcc dot gnu.org Target Milestone: --- Status: RESOLVED CC: mpolacek at gcc dot gnu.org Resolution: DUPLICATE Hello guys. I'm newbie about the GCC compiler. Also, my english skill is poor, please understand it. Actually, When I compile using below command, my source are deleted. gcc -o mysource.c mysource I know this command is wrong. but I think that this is a problem. because user can make a mistake. Also user can't recover his source code everything. So, I think that If user input the like upper commend, we can change the parameter order or backup the source file. If you agree this situation, I'll try upload the patch. --- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Probably can be closed as a dup of PR36312 (which added "input file is the same as output file"). *** This bug has been marked as a duplicate of bug 36312 ***