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

std::terminate


This patch corrects the problem that terminate_node was mangled as
terminate__Fv even with -fhonor-std. I get testsuite failures for

FAIL: g++.eh/catch11.C  Execution test
FAIL: g++.eh/catch12.C  Execution test
XPASS: g++.law/refs4.C  Execution test
FAIL: g++.oliva/template7.C caused compiler crash

but I don't think they are related to this patch. Ok to install?

Regards,
Martin

2000-05-29  Martin v. Löwis  <loewis@informatik.hu-berlin.de>

	* decl.c (build_library_fn_1): Set DECL_CONTEXT.

Index: decl.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/decl.c,v
retrieving revision 1.615
diff -u -p -r1.615 decl.c
--- decl.c	2000/05/28 02:58:14	1.615
+++ decl.c	2000/05/29 08:36:34
@@ -6788,6 +6788,7 @@ build_library_fn_1 (name, operator_code,
   DECL_ARTIFICIAL (fn) = 1;
   TREE_NOTHROW (fn) = 1;
   SET_OVERLOADED_OPERATOR_CODE (fn, operator_code);
+  DECL_CONTEXT (fn) = FROB_CONTEXT (current_namespace);
   return fn;
 }
 


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