http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56698
--- Comment #3 from Mike Hommey <mh+gcc at glandium dot org> 2013-04-03 15:46:04 UTC --- Created attachment 29798 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29798 Preprocessed file This is the preprocessed file. In case that helps, the gcc it failed to build with is: http://puppetagain.pub.build.mozilla.org/data/repos/yum/releng/public/CentOS/6/x86_64/gcc472_0moz1-4.7.2-0moz1.x86_64.rpm The rpm spec used to create it: http://hg.mozilla.org/build/rpm-sources/file/396d84ab838e/gcc47/centos6-x86_64/gcc47.spec And the command line: /tools/gcc-4.7.2-0moz1/bin/g++ -o nsDiskCacheMap.o -c -I../../dist/stl_wrappers -I../../dist/system_wrappers -include /builds/slave/try-l64-0000000000000000000000/build/config/gcc_hidden.h -DMOZ_GLUE_IN_PROGRAM -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES -DSTATIC_EXPORTABLE_JS_API -DNO_NSPR_10_SUPPORT -DIMPL_NS_NET -I/builds/slave/try-l64-0000000000000000000000/build/netwerk/cache/../base/src -I/builds/slave/try-l64-0000000000000000000000/build/netwerk/cache -I. -I../../dist/include -I/builds/slave/try-l64-0000000000000000000000/build/obj-firefox/dist/include/nspr -I/builds/slave/try-l64-0000000000000000000000/build/obj-firefox/dist/include/nss -fPIC -Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wtype-limits -Wempty-body -Wsign-compare -Wno-invalid-offsetof -Wcast-align -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -std=gnu++0x -pthread -pipe -DNDEBUG -DTRIMMED -g -fprofile-use -fprofile-correction -Wcoverage-mismatch -O3 -fno-omit-frame-pointer -Werror -Wno-error=uninitialized -Wno-error=deprecated-declarations -DMOZILLA_CLIENT -include ../../mozilla-config.h -MD -MF .deps/nsDiskCacheMap.o.pp /builds/slave/try-l64-0000000000000000000000/build/netwerk/cache/nsDiskCacheMap.cpp -save-temps=obj Error message: /builds/slave/try-l64-0000000000000000000000/build/netwerk/cache/nsDiskCacheMap.cpp: In member function 'nsresult nsDiskCacheMap::WriteDataCacheBlocks(nsDiskCacheBinding*, char*, uint32_t)': /builds/slave/try-l64-0000000000000000000000/build/netwerk/cache/nsDiskCacheMap.cpp:1042:68: error: array subscript is above array bounds [-Werror=array-bounds] I can't reproduce locally, so i suspect this also depends on the content of the gcda file, i'll try to get one.