From be34355626aab9c515132bd0bd795f9100324db8 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Sun, 25 Jan 1998 13:33:39 +0000 Subject: [PATCH] decl.c (cp_finish_decl): When bailing on a comdat variable, also unset DECL_NOT_REALLY_EXTERN. * decl.c (cp_finish_decl): When bailing on a comdat variable, also unset DECL_NOT_REALLY_EXTERN. From-SVN: r17477 --- gcc/cp/ChangeLog | 3 +++ gcc/cp/NEWS | 9 +++++++-- gcc/cp/decl.c | 9 ++++++--- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 795a4044029..09d9f46af71 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,8 @@ Sun Jan 25 03:30:00 1998 Jason Merrill + * decl.c (cp_finish_decl): When bailing on a comdat variable, also + unset DECL_NOT_REALLY_EXTERN. + * parse.y (typename_sub*): Fix std::. Sat Jan 24 12:13:54 1998 Jason Merrill diff --git a/gcc/cp/NEWS b/gcc/cp/NEWS index 7548830396d..f102109294f 100644 --- a/gcc/cp/NEWS +++ b/gcc/cp/NEWS @@ -1,4 +1,10 @@ -*** Changes since G++ version 2.7.2: +*** Changes since EGCS 1.0: + +* Template template parameters are now supported. + +* operator new now throws bad_alloc where appropriate. + +*** Changes in EGCS 1.0: * A public review copy of the December 1996 Draft of the ISO/ANSI C++ standard is now available. See @@ -61,7 +67,6 @@ Still not supported: + Member class templates. - + Template template parameters. + Template friends. * Exception handling support has been significantly improved and is on by diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index a6075e0f4fa..cc69caa586a 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -6841,9 +6841,12 @@ cp_finish_decl (decl, init, asmspec_tree, need_pop, flags) if (flag_weak) make_decl_one_only (decl); else - /* we can't do anything useful; leave vars for explicit - instantiation. */ - DECL_EXTERNAL (decl) = 1; + { + /* we can't do anything useful; leave vars for explicit + instantiation. */ + DECL_EXTERNAL (decl) = 1; + DECL_NOT_REALLY_EXTERN (decl) = 0; + } } } -- 2.30.2