From: jason Date: Sun, 25 Jan 1998 13:33:39 +0000 (+0000) Subject: * decl.c (cp_finish_decl): When bailing on a comdat variable, also X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a23a393dcac942c2b838956bc2994a7732223811;p=platform%2Fupstream%2Flinaro-gcc.git * decl.c (cp_finish_decl): When bailing on a comdat variable, also unset DECL_NOT_REALLY_EXTERN. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17477 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 795a404..09d9f46 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 7548830..f102109 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 a6075e0..cc69caa 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; + } } }