This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]