I've noticed that all the gfortran.dg/stat_[12].f90 fail for me on all platforms (i.e. sparc-sun-solaris2, alpha-dec-osf, mips-sgi-irix).
FAIL: gfortran.dg/stat_1.f90 -O0 execution test at all optimization levels. Running it under gdb reveals that it aborts here: #4 0x000110f0 in MAIN__ () at /vol/gcc/src/hg/trunk/solaris/gcc/testsuite/gfortran.dg/stat_1.f90:19 19 if (s1(6) /= getgid() .and. getgid() /= 0) call abort Unfortunately, the test is bogus: at least on NFS with either the sgid bit set on the parent directory or with the filesystem mounted with the grpid option, newly created files are created with the gid of the directory, not the primary group of the owner. I don't know how best to fix this (maybe check if the file's group is in the set of supplemental groups, if libgfortran supports getgroups). -- Summary: gfortran.dg/stat_[12].f90 may fail on NFS filesystems Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ro at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42900