http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56490
Bug #: 56490 Summary: [4.6/4.7 Regression] -Wall triggering infinite loop Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: o.fle...@science-computing.de Created attachment 29559 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29559 Testcase: Loops forever with -O2 -Wall Compiling testcase, gfortran seems to loop forever. gfortran -c -O -Wall testcase.f leaving out -Wall seems to compile o.k. Have to problem on several independent gcc distros: This one for instance: COLLECT_GCC=/usr/local/gcc-4.6.3/bin/gcc COLLECT_LTO_WRAPPER=/usr/local/gcc-4.6.3/libexec/gcc/x86_64-unknown-linux-gnu/4.6.3/lto-wrapper Ziel: x86_64-unknown-linux-gnu Konfiguriert mit: /soft/os/gcc/gcc-4.6.3/gcc-4.6.3/configure --srcdir=/soft/os/gcc/gcc-4.6.3/gcc-4.6.3 --prefix=/usr/local/gcc-4.6.3 --with-included-gettext --enable-__cxa_atexit --enable-threads --enable-shared --enable-languages=c,c++,fortran --enable-libgcj --enable-ssp --disable-libssp --with-gmp-include=/usr/local/devel/gmp/5.0.1-static/include --with-gmp-lib=/usr/local/devel/gmp/5.0.1-static/lib64 --with-mpfr-include=/usr/local/devel/mpfr/2.4.2-static/include --with-mpfr-lib=/usr/local/devel/mpfr/2.4.2-static/lib64 --with-mpc-include=/usr/local/devel/mpc/0.8.1-static/include --with-mpc-lib=/usr/local/devel/mpc/0.8.1-static/lib64 Thread-Modell: posix gcc-Version 4.6.3 (GCC)