diff options
author | Jason Merrill <jason@yorick.cygnus.com> | 1998-01-25 13:33:39 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1998-01-25 08:33:39 -0500 |
commit | be34355626aab9c515132bd0bd795f9100324db8 (patch) | |
tree | e202b88352ef395417495015752c6592ae899b1a | |
parent | d3959d607ecc7113771ad2661f86ba9b94349c0e (diff) | |
download | gcc-be34355626aab9c515132bd0bd795f9100324db8.zip gcc-be34355626aab9c515132bd0bd795f9100324db8.tar.gz gcc-be34355626aab9c515132bd0bd795f9100324db8.tar.bz2 |
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
-rw-r--r-- | gcc/cp/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/cp/NEWS | 9 | ||||
-rw-r--r-- | gcc/cp/decl.c | 9 |
3 files changed, 16 insertions, 5 deletions
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 <jason@yorick.cygnus.com> + * 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 <jason@yorick.cygnus.com> 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; + } } } |