nothrow?

Ian Lance Taylor iant@google.com
Mon Mar 9 05:28:00 GMT 2009


Michael Sullivan <msulli1355@gmail.com> writes:

> I wrote a program, and when I compile it, I get:
>
> michael@camille OurRPG $ make
> g++ -O2 -W -Wall -pedantic `sdl-config --cflags` -c draw.cpp
> enemyparty.o allyparty.o
> /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/memory: In function
> 'std::pair<_Tp*, int> std::__get_temporary_buffer(ptrdiff_t, _Tp*)':
> /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/memory:83: error:
> 'nothrow' was not declared in this scope
> /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/memory: In function
> 'void std::return_temporary_buffer(_Tp*)':
> /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4/memory:123: error:
> 'nothrow' was not declared in this scope
>
> Is this a bug?

We don't know.  You need to give us more information, like the complete
command line, and the source code.  See http://gcc.gnu.org/bugs.html .

nothrow would normally be defined by <new>.

Ian



More information about the Gcc-help mailing list