This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: nothrow?
- From: Ian Lance Taylor <iant at google dot com>
- To: Michael Sullivan <msulli1355 at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sun, 08 Mar 2009 22:27:55 -0700
- Subject: Re: nothrow?
- References: <1236445051.15761.74.camel@camille.espersunited.com>
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