[Bug driver/64094] "No such file or directory" -> "No such file"

jg at jguk dot org gcc-bugzilla@gcc.gnu.org
Wed Dec 12 11:16:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64094

--- Comment #9 from Jonny Grant <jg at jguk dot org> ---
(In reply to Jonny Grant from comment #6)

> (2)
> $ mkdir testdir.cpp
> 
> $ gcc -o main testdir.cpp
> cc1plus: fatal error: testdir.cpp: No such file or directory
> compilation terminated.

Can files be checked that they are files? a quick stat() on each of them before
passing them along?


eg. stat() and then S_ISDIR(statbuf.st_mode) and display strerror(EISDIR), then
check if a regular file with S_ISREG(statbuf.st_mode)


More information about the Gcc-bugs mailing list