Commit 74e56995 by Nathan Sidwell Committed by Nathan Sidwell

pt.c (coerce_template_parms): Fix indentation.

	* pt.c (coerce_template_parms): Fix indentation.
	(tsubst_decl): Remove repeated SET_DECL_RTL.  Move VAR_P handling
	in to single block.

From-SVN: r249370
parent c14c0b15
2017-06-19 Nathan Sidwell <nathan@acm.org> 2017-06-19 Nathan Sidwell <nathan@acm.org>
* pt.c (coerce_template_parms): Fix indentation.
(tsubst_decl): Remove repeated SET_DECL_RTL. Move VAR_P handling
in to single block.
PR c++/81119 PR c++/81119
* name-lookup.c (update_binding): Only warn about constructors * name-lookup.c (update_binding): Only warn about constructors
hidden by functions. hidden by functions.
......
...@@ -12947,13 +12947,11 @@ tsubst_decl (tree t, tree args, tsubst_flags_t complain) ...@@ -12947,13 +12947,11 @@ tsubst_decl (tree t, tree args, tsubst_flags_t complain)
/* The initializer must not be expanded until it is required; /* The initializer must not be expanded until it is required;
see [temp.inst]. */ see [temp.inst]. */
DECL_INITIAL (r) = NULL_TREE; DECL_INITIAL (r) = NULL_TREE;
if (VAR_P (r))
SET_DECL_MODE (r, VOIDmode);
if (CODE_CONTAINS_STRUCT (TREE_CODE (t), TS_DECL_WRTL))
SET_DECL_RTL (r, NULL);
DECL_SIZE (r) = DECL_SIZE_UNIT (r) = 0; DECL_SIZE (r) = DECL_SIZE_UNIT (r) = 0;
if (VAR_P (r)) if (VAR_P (r))
{ {
SET_DECL_MODE (r, VOIDmode);
/* Possibly limit visibility based on template args. */ /* Possibly limit visibility based on template args. */
DECL_VISIBILITY (r) = VISIBILITY_DEFAULT; DECL_VISIBILITY (r) = VISIBILITY_DEFAULT;
if (DECL_VISIBILITY_SPECIFIED (t)) if (DECL_VISIBILITY_SPECIFIED (t))
......
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