This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/45940] [trans-mem] Error of unsafe function even if annotated


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â


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]