https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61962
Bug ID: 61962 Summary: GCC seems to enter an infinite loop when compiling the above code. Product: gcc Version: 4.10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: nick.tomlinson at arm dot com Created attachment 33211 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33211&action=edit A minimal reproducer ==== Steps to reproduce ==== - Build with: g++ -fcilkplus -c arrayinf.cpp - Wait for 60 seconds. - Observe that g++ is still running. ==== What I expected to happen ==== - g++ should terminate, with an object file having been produces. ==== What actually happened ==== - After the 60 seconds, g++ is still running, and consuming an entire core. ==== Environment ==== I have tried this with: - My system GCC (g++, version 4.9.1) - A native build of GCC (${GCC_TRUNK}/bin/g++, revision r213234) ${GCC_TRUNK}/bin/g++ is a native build of GCC, with the following specified to the configure script: ./configure --prefix=${GCC_TRUNK} \ --enable-languages=c,c++,fortran --disable-sjlj-exceptions And make invoked as: make CXXFLAGS="-g3 -O0" -j9 $ uname -a Linux squamata 3.15.7-1-ARCH #1 SMP PREEMPT Mon Jul 28 20:06:17 CEST 2014 x86_64 GNU/Linux $ g++ --version g++ (GCC) 4.9.1 Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ ${GCC_TRUNK}/bin/g++ --version g++ (GCC) 4.10.0 20140730 (experimental) Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ==== Possibly related bugs ==== - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59053 Also goes into a loop, though its reproducer is a lot longer, so its hard to tell if it's for the same reason.