Well now that I have the test suite working easy I decided to explore a little. At higher levels of optimization everything works good except:
$ gfc -w -O2 FM013.f /tmp/ccm7knWJ.o(.text+0x4a3): In function `MAIN__': FM013.f: undefined reference to `.L3' /tmp/ccm7knWJ.o(.text+0x598):FM013.f: undefined reference to `.L15' /tmp/ccm7knWJ.o(.text+0x5c4):FM013.f: undefined reference to `.L15' /tmp/ccm7knWJ.o(.text+0x68a):FM013.f: undefined reference to `.L27' collect2: ld returned 1 exit status This is not really a Fortran issue. -- Summary: NIST Failure - FM013.f at -O2 Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jvdelisle at gcc dot gnu dot org GCC host triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25251