This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc 2.95 and libstdc++/stdexcepti.cc
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: gcc 2.95 and libstdc++/stdexcepti.cc
- From: mgyger at gmu dot edu (Markus Gyger)
- Date: Thu, 15 Jul 1999 22:05:39 -0400 (EDT)
egcs-19990714 stops building if flag_honor_std, flag_vtable_thunks,
flag_new_abi and flag_do_squangling in gcc/cp/decl2.c are set to 1:
gmake: Entering directory `egcs-19990714/sparc-sun-solaris2.7/libio/libstdc++'
egcs-19990714/gcc/xgcc -Begcs-19990714/gcc/ -B/opt/gnu/sparc-sun-solaris2.7/bin/ -c -g -O2 -fno-implicit-templates -I. -I./stl -I../libio -I./../libio -nostdinc++ -D_PTHREADS stdexcepti.cc
stdexcepti.cc: In function `void __out_of_range(const char *)':
stdexcepti.cc:15: implicit declaration of function `int out_of_range(...)'
The following seems to fix it:
--- egcs-19990714/libstdc++/stdexcepti.cc.orig Fri Oct 10 02:56:52 1997
+++ egcs-19990714/libstdc++/stdexcepti.cc Thu Jul 15 21:21:47 1999
@@ -12,10 +12,10 @@
void
__out_of_range (const char *s)
{
- throw out_of_range (s);
+ throw std::out_of_range (s);
}
void __length_error (const char *s)
{
- throw length_error (s);
+ throw std::length_error (s);
}