http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55381
--- Comment #1 from Hans-Peter Nilsson <hp at gcc dot gnu.org> 2012-11-18 17:04:03 UTC --- Random cutnpasted suspicious warning, maybe related: g++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I/tmp/hpautotest-gcc0/gcc/gcc -I/tmp/hpautotest-gcc0/gcc/gcc/build -I/tmp/hpautotest-gcc0/gcc/gcc/../include -I/tmp/hpautotest-gcc0/gcc/gcc/../libcpp/include -I/tmp/hpautotest-gcc0/cris-elf/gccobj/./gmp -I/tmp/hpautotest-gcc0/gcc/gmp -I/tmp/hpautotest-gcc0/cris-elf/gccobj/./mpfr -I/tmp/hpautotest-gcc0/gcc/mpfr -I/tmp/hpautotest-gcc0/gcc/mpc/src -I/tmp/hpautotest-gcc0/gcc/gcc/../libdecnumber -I/tmp/hpautotest-gcc0/gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I/tmp/hpautotest-gcc0/gcc/gcc/../libbacktrace \ -o build/read-rtl.o /tmp/hpautotest-gcc0/gcc/gcc/read-rtl.c In file included from /tmp/hpautotest-gcc0/gcc/gcc/rtl.h:29, from /tmp/hpautotest-gcc0/gcc/gcc/read-rtl.c:30: /tmp/hpautotest-gcc0/gcc/gcc/vec.h: In static member function 'static size_t vec<T, A, vl_embed>::embedded_size(unsigned int) [with T = mapping*, A = va_heap]': /tmp/hpautotest-gcc0/gcc/gcc/vec.h:299: instantiated from 'static void va_heap::reserve(vec<T, va_heap, vl_embed>*&, unsigned int, bool) [with T = mapping*]' /tmp/hpautotest-gcc0/gcc/gcc/vec.h:1445: instantiated from 'bool vec<T, A, vl_ptr>::reserve(unsigned int, bool) [with T = mapping*, A = va_heap]' /tmp/hpautotest-gcc0/gcc/gcc/vec.h:1540: instantiated from 'T* vec<T, A, vl_ptr>::safe_push(const T&) [with T = mapping*, A = va_heap]' /tmp/hpautotest-gcc0/gcc/gcc/read-rtl.c:389: instantiated from here /tmp/hpautotest-gcc0/gcc/gcc/vec.h:1069: warning: invalid access to non-static data member 'vec<mapping*, va_heap, vl_embed>::data_' of NULL object /tmp/hpautotest-gcc0/gcc/gcc/vec.h:1069: warning: (perhaps the 'offsetof' macro was used incorrectly)