------- Comment #3 from anmol at freescale dot com 2009-04-28 21:38 -------
I tried reproducing on trunk and on gcc-4_4-branch; GCC does not loop forever: gcc version 4.5.0 20090423 (experimental) [trunk revision 146648] (GCC) ------------------------------------------------------------------------ $ cat pr38375.c struct sqt13 {}; struct sqt13 { struct sqt13 x; } y = { 3.0 }; $ ~/gcc-pure/tools/bin/powerpc-unknown-linux-gnu-gcc -v Using built-in specs. Target: powerpc-unknown-linux-gnu Configured with: ../../gcc/configure --prefix=/home/anmol/gcc-pure/tools/ --build=powerpc-unknown-linux-gnu --target=powerpc-unknown-linux-gnu --host=powerpc-unknown-linux-gnu --with-ppl=/home/anmol/gcc-pure/tools/ --with-cloog=/home/anmol/gcc-pure/tools/ --enable-checking : (reconfigured) ../../gcc/configure --prefix=/home/anmol/gcc-pure/tools/ --build=powerpc-unknown-linux-gnu --target=powerpc-unknown-linux-gnu --host=powerpc-unknown-linux-gnu --with-ppl=/home/anmol/gcc-pure/tools/ --with-cloog=/home/anmol/gcc-pure/tools/ --enable-checking build_alias=powerpc-unknown-linux-gnu host_alias=powerpc-unknown-linux-gnu target_alias=powerpc-unknown-linux-gnu --enable-languages=c,c++,fortran,java,objc --no-create --no-recursion Thread model: posix gcc version 4.5.0 20090423 (experimental) [trunk revision 146648] (GCC) $ time ~/gcc-pure/tools/bin/powerpc-unknown-linux-gnu-gcc -c pr38375.c pr38375.c:2: error: redefinition of struct sqt13 pr38375.c:3: error: field x has incomplete type real 0m0.044s user 0m0.027s sys 0m0.009s $ uname -a Linux localhost.localdomain 2.6.27.5-117.fc10.ppc #1 Tue Nov 18 11:50:30 EST 2008 ppc ppc ppc GNU/Linux gcc version 4.4.1 20090424 (prerelease) [gcc-4_4-branch revision 146746] (GCC) ------------------------------------------------------------------------------- $ cat 38375.c struct sqt13 {}; struct sqt13 { struct sqt13 x; } y = { 3.0 }; $ /proj/ppc/sysperf/labhome/b07584/gcc-fsf-zero/tools/bin/powerpc-unknown-linux-gnu-gcc -v Using built-in specs. Target: powerpc-unknown-linux-gnu Configured with: ../../gcc/configure --prefix=/proj/ppc/sysperf/labhome/b07584/gcc-fsf-zero//tools/ --build=powerpc-unknown-linux-gnu --target=powerpc-unknown-linux-gnu --host=powerpc-unknown-linux-gnu --with-ppl=/proj/ppc/sysperf/labhome/b07584/gcc-fsf-zero/tools/ --with-cloog=/proj/ppc/sysperf/labhome/b07584/gcc-fsf-zero/tools/ --enable-checking Thread model: posix gcc version 4.4.1 20090424 (prerelease) [gcc-4_4-branch revision 146746] (GCC) $ time /proj/ppc/sysperf/labhome/b07584/gcc-fsf-zero/tools/bin/powerpc-unknown-linux-gnu-gcc -c 38375.c 38375.c:2: error: redefinition of struct sqt13 38375.c:3: error: field x has incomplete type real 0m0.111s user 0m0.030s sys 0m0.029s $ uname -a Linux perf3farm0.am.freescale.net 2.6.27.5-117.fc10.ppc.smp #1 SMP Tue Nov 18 12:35:18 EST 2008 ppc ppc ppc GNU/Linux -- anmol at freescale dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |anmol at freescale dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38375