https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64094
Bug ID: 64094 Summary: "No such file or directory" -> "No such file" Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: pending Assignee: unassigned at gcc dot gnu.org Reporter: jg at jguk dot org Hello I saw when "main.cpp" is not accessible, the standard ENOENT message "No such file or directory" is used. However, this is not really accurate, as it was open() that was used to open a file. A file was expected, therefore if GCC could output "No such file" the message would be clearer. I objdump has this behaviour already: $ objdump -a main2.exe objdump: 'main2.exe': No such file $ gcc --version gcc (GCC) 4.8.3 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ gcc -o main main.cpp gcc: error: main.cpp: No such file or directory gcc: fatal error: no input files compilation terminated.