http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53502
Bug #: 53502 Summary: [4.8 Regression] Bootstrap broken with --disable-build-poststage1-with-cxx Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: tkoe...@gcc.gnu.org ../trunk/configure --prefix=$HOME --enable-languages=c,fortran --disable-build-poststage1-with-cxx The error was: ../../trunk/gcc/fortran/decl.c: In function 'match_attr_spec': ../../trunk/gcc/fortran/decl.c:3276:3: error: typedef 'decl_types' locally defined but not used [-Werror=unused-local-typedefs] decl_types; ^ cc1: all warnings being treated as errors make[3]: *** [fortran/decl.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/home/ig25/Gcc/trunk-bin/gcc' make[2]: *** [all-stage2-gcc] Error 2 make[2]: Leaving directory `/home/ig25/Gcc/trunk-bin' make[1]: *** [stage2-bubble] Error 2 make[1]: Leaving directory `/home/ig25/Gcc/trunk-bin' make: *** [all] Error 2 Reduced test case: ig25@linux-fd1f:~/Krempel/Boot> gcc -Werror -Wall foo.c foo.c: In function 'bar': foo.c:6:5: error: typedef 'foo' locally defined but not used [-Werror=unused-local-typedefs] } foo; ^ cc1: all warnings being treated as errors ig25@linux-fd1f:~/Krempel/Boot> gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/home/ig25/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../trunk/configure --prefix=/home/ig25 --enable-languages=c,fortran Thread model: posix gcc version 4.8.0 20120527 (experimental) (GCC) ig25@linux-fd1f:~/Krempel/Boot> 4.6.2 doesn't warn.