https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82696
Bug ID: 82696 Summary: "File not found"-Message if source exists, but doesnt have .c extension Product: gcc Version: 4.9.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: slohm...@uni-wuppertal.de Target Milestone: --- Created attachment 42459 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42459&action=edit Hello World-Source with .c-Extension A student tried to compile his sourcefile named "hello" (instead of the correct "hello.c") and got the message that his file could not be found. I could reproduce the issue: Files without extension should be passed to the linker iirc, but GCC seems to do some detection on it and throws a "file not found" if it contains c-code (or isnt an object-file?) I think the message is very irritating as the file does exist. Please change this to a more appropriate message like "'hello' is not an object-file". --- Steps to reproduce: 1. Take any working c-sourcecode (for example the provided "hello.c" and remove the '.c'-extension. 2. compile it with "gcc hello" -> you get a error message that the file could not be found and a "fatal error: no input files"