The patch http://gcc.gnu.org/ml/fortran/2004-07/msg00039.html by Andreas Krebbel fixes PR 16291 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16291 Bootstrapped and tested on mips-sgi-irix6.5. I can commit if approved.