This problem appears to result in many tessuite failures. I belive Kai is having a look at it. The problem is likely in libgfortran/io/unix.c .
I have not determined if it is configuring or wrong code. I suspect the wrong code from my initial looks at this. -- Summary: open(unit, status="scratch") fails to create tempporary file Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libfortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jvdelisle at gcc dot gnu dot org GCC host triplet: mingw http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43844