This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/45940] [trans-mem] Error of unsafe function even if annotated
- From: "vincent.gramoli at epfl dot ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 20 Jan 2011 10:28:13 +0000
- Subject: [Bug c++/45940] [trans-mem] Error of unsafe function even if annotated
- Auto-submitted: auto-generated
- References: <bug-45940-4@http.gcc.gnu.org/bugzilla/>
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â