http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56686
Kai Tietz <ktietz at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #8 from Kai Tietz <ktietz at gcc dot gnu.org> ---
That is a MinGW.org issue. For mingw-w64 this issue is fixed. Well, actually
it is under the hood a msvcrt issue about stat-routines. Sadly it can't handle
proper trailing slashes on paths.
To verify the issue simply check following test program:
#include <io.h>
#include <sys/stat.h>
#include <stdio.h>
int main()
{
struct stat fb;
if (stat ("./", &fb))
printf ("'./' stat failed.\n");
return 0;
}
I close this bug as invalid, due it isn't caused, nor to be fixed by gcc.