http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53237
Bug #: 53237 Summary: Bootstrap fails due to mixed declarations and code (c-lex.c) Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassig...@gcc.gnu.org ReportedBy: sk...@iskunk.org Building 4.7.0 on Solaris using the Sun compiler... [...] cc -xarch=v9 -xildoff -c -DIN_GCC_FRONTEND -DIN_GCC_FRONTEND -g -DIN_GCC -DHAVE_CONFIG_H -I. -Ic-family -I/home/src/gcc-4.7.0/gcc -I/home/src/gcc-4.7.0/gcc/c-family -I/home/src/gcc-4.7.0/gcc/../include -I/home/src/gcc-4.7.0/gcc/../libcpp/include -I/tg/freeport/arch/sunos64/include -I/tg/freeport/arch/sunos64/include -I/tg/freeport/arch/sunos64/include -I/home/src/gcc-4.7.0/gcc/../libdecnumber -I/home/src/gcc-4.7.0/gcc/../libdecnumber/dpd -I../libdecnumber /home/src/gcc-4.7.0/gcc/c-family/c-lex.c -o c-family/c-lex.o "/home/src/gcc-4.7.0/gcc/c-family/c-lex.c", line 353: syntax error before or at: char "/home/src/gcc-4.7.0/gcc/c-family/c-lex.c", line 354: undefined symbol: str "/home/src/gcc-4.7.0/gcc/c-family/c-lex.c", line 354: cannot dereference non-pointer type "/home/src/gcc-4.7.0/gcc/c-family/c-lex.c", line 355: syntax error before or at: literal "/home/src/gcc-4.7.0/gcc/c-family/c-lex.c", line 357: undefined symbol: literal "/home/src/gcc-4.7.0/gcc/c-family/c-lex.c", line 357: warning: improper pointer/integer combination: op "=" cc: acomp failed for /home/src/gcc-4.7.0/gcc/c-family/c-lex.c gmake[3]: *** [c-family/c-lex.o] Error 2 gmake[3]: Leaving directory `/tmp/gcc-build/gcc' gmake[2]: *** [all-stage1-gcc] Error 2 gmake[2]: Leaving directory `/tmp/gcc-build' gmake[1]: *** [stage1-bubble] Error 2 gmake[1]: Leaving directory `/tmp/gcc-build' gmake: *** [bootstrap-lean] Error 2 The relevant portion of c-lex.c is declaring "char *str" in the middle of an if{} block.