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)

Reply via email to