Commit bf5730d7 by Jason Merrill Committed by Jason Merrill

* decl2.c (determine_visibility): Use get_template_info.

From-SVN: r222133
parent 5ce3039e
2015-04-15 Jason Merrill <jason@redhat.com> 2015-04-15 Jason Merrill <jason@redhat.com>
* decl2.c (determine_visibility): Use get_template_info.
2015-04-15 Jason Merrill <jason@redhat.com>
Marek Polacek <polacek@redhat.com> Marek Polacek <polacek@redhat.com>
PR c++/65727 PR c++/65727
......
...@@ -2386,9 +2386,7 @@ determine_visibility (tree decl) ...@@ -2386,9 +2386,7 @@ determine_visibility (tree decl)
{ {
/* If the specialization doesn't specify visibility, use the /* If the specialization doesn't specify visibility, use the
visibility from the template. */ visibility from the template. */
tree tinfo = (TREE_CODE (decl) == TYPE_DECL tree tinfo = get_template_info (decl);
? TYPE_TEMPLATE_INFO (TREE_TYPE (decl))
: DECL_TEMPLATE_INFO (decl));
tree args = TI_ARGS (tinfo); tree args = TI_ARGS (tinfo);
tree attribs = (TREE_CODE (decl) == TYPE_DECL tree attribs = (TREE_CODE (decl) == TYPE_DECL
? TYPE_ATTRIBUTES (TREE_TYPE (decl)) ? TYPE_ATTRIBUTES (TREE_TYPE (decl))
......
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