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]

nothrow?


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?

I'm running gcc-4.1.2 on a Gentoo system:

camille local # emerge -pv gcc 

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-devel/gcc-4.1.2  USE="doc fortran gtk mudflap nls
vanilla (-altivec) -bootstrap -build -d -gcj (-hardened) -ip28 -ip32r10k
-libffi (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++
-objc-gc -test" 0 kB

camille local # uname -a
Linux camille 2.6.26-gentoo-r4 #1 SMP Sat Dec 13 17:31:25 CST 2008 i686
GNU/Linux

Please advise...


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