This is the mail archive of the gcc-help@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]

Re: nothrow?


On Sun, 2009-03-08 at 22:27 -0700, Ian Lance Taylor wrote:
> 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

I added #include <new> to character.h and recompiled.  The resulting
output has not changed.


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