Commit be343556 by Jason Merrill Committed by Jason Merrill

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
parent d3959d60
Sun Jan 25 03:30:00 1998 Jason Merrill <jason@yorick.cygnus.com> 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::. * parse.y (typename_sub*): Fix std::.
Sat Jan 24 12:13:54 1998 Jason Merrill <jason@yorick.cygnus.com> Sat Jan 24 12:13:54 1998 Jason Merrill <jason@yorick.cygnus.com>
......
*** 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++ * A public review copy of the December 1996 Draft of the ISO/ANSI C++
standard is now available. See standard is now available. See
...@@ -61,7 +67,6 @@ ...@@ -61,7 +67,6 @@
Still not supported: Still not supported:
+ Member class templates. + Member class templates.
+ Template template parameters.
+ Template friends. + Template friends.
* Exception handling support has been significantly improved and is on by * Exception handling support has been significantly improved and is on by
......
...@@ -6841,9 +6841,12 @@ cp_finish_decl (decl, init, asmspec_tree, need_pop, flags) ...@@ -6841,9 +6841,12 @@ cp_finish_decl (decl, init, asmspec_tree, need_pop, flags)
if (flag_weak) if (flag_weak)
make_decl_one_only (decl); make_decl_one_only (decl);
else else
/* we can't do anything useful; leave vars for explicit {
instantiation. */ /* we can't do anything useful; leave vars for explicit
DECL_EXTERNAL (decl) = 1; instantiation. */
DECL_EXTERNAL (decl) = 1;
DECL_NOT_REALLY_EXTERN (decl) = 0;
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment