http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45940
--- Comment #13 from Vincent Gramoli <vincent.gramoli at epfl dot ch> 2011-01-20 10:28:03 UTC --- I updated and got the following problem while recompiling. Could it be related to your recent changes somehow? gcc -o gnupg/sha1.o -c -DHAVE_CONFIG_H -D_GNU_SOURCE=1 -D_REENTRANT -Ilibgag/include -I. -I/usr/include/SDL gnupg/sha1.c ar rc gnupg/libgnupg.a gnupg/sha1.o ranlib gnupg/libgnupg.a g++ -o libgag/src/BinaryStream.o -c -Wall -g -fgnu-tm -fno-builtin -DHAVE_CONFIG_H -D_GNU_SOURCE=1 -D_REENTRANT -Ilibgag/include -I. -I/usr/include/SDL libgag/src/BinaryStream.cpp In file included from /home/gramoli/velox/gcc-tm-install/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/localefwd.h:42:0, from /home/gramoli/velox/gcc-tm-install/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../../include/c++/4.6.0/string:45, from libgag/include/Stream.h:25, from libgag/include/BinaryStream.h:23, from libgag/src/BinaryStream.cpp:20: /home/gramoli/velox/gcc-tm-install/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../../include/c++/4.6.0/i686-pc-linux-gnu/bits/c++locale.h: In function ‘int std::__convert_from_v(int* const&, char*, int, const char*, ...)’: /home/gramoli/velox/gcc-tm-install/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../../include/c++/4.6.0/i686-pc-linux-gnu/bits/c++locale.h:65:24: error: call to function ‘void* operator new [](unsigned int)’ which throws incomplete type ‘struct std::bad_alloc’ In file included from /home/gramoli/velox/gcc-tm-install/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../../include/c++/4.6.0/valarray:87:0, from libgag/src/BinaryStream.cpp:22: /home/gramoli/velox/gcc-tm-install/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/valarray_array.h: In function ‘void* std::__valarray_get_memory(size_t)’: /home/gramoli/velox/gcc-tm-install/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/valarray_array.h:53:28: error: call to function ‘void* operator new(unsigned int)’ which throws incomplete type ‘struct std::bad_alloc’ In file included from /home/gramoli/velox/gcc-tm-install/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../../include/c++/4.6.0/valarray:564:0, from libgag/src/BinaryStream.cpp:22: /home/gramoli/velox/gcc-tm-install/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/gslice.h: In constructor ‘std::gslice::gslice()’: /home/gramoli/velox/gcc-tm-install/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/gslice.h:148:35: error: call to function ‘void* operator new(unsigned int)’ which throws incomplete type ‘struct std::bad_alloc’ /home/gramoli/velox/gcc-tm-install/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/gslice.h: In constructor ‘std::gslice::gslice(size_t, const std::valarray<unsigned int>&, const std::valarray<unsigned int>&)’: /home/gramoli/velox/gcc-tm-install/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/gslice.h:153:48: error: call to function ‘void* operator new(unsigned int)’ which throws incomplete type ‘struct std::bad_alloc’