• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GCC with patches for OS216


Commit MetaInfo

Revisionddd792fa53345180c782494aa597e438a73b6248 (tree)
Time2020-01-15 06:08:14
AuthorNathan Sidwell <nathans@fb.c...>
CommiterNathan Sidwell

Log Message

[PR90916] Use TI accessor.

PR c++/90916
* pt.c (retrieve_specialization): Use get_template_info, not open
coding access.

Change Summary

Incremental Difference

--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,9 @@
11 2020-01-14 Nathan Sidwell <nathan@acm.org>
22
3+ PT c++/90916
4+ * pt.c (retrieve_specialization): Use get_template_info, not open
5+ coding access.
6+
37 PR c++/90916
48 * pt.c (retrieve_specialization): Get the TI from the decl or the
59 classtype as appropriate.
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -1252,9 +1252,7 @@ retrieve_specialization (tree tmpl, tree args, hashval_t hash)
12521252 for (ovl_iterator iter (fns); iter; ++iter)
12531253 {
12541254 tree fn = *iter;
1255- if (tree ti = (TREE_CODE (fn) == TYPE_DECL && !TYPE_DECL_ALIAS_P (fn)
1256- ? TYPE_TEMPLATE_INFO (TREE_TYPE (fn))
1257- : DECL_TEMPLATE_INFO (fn)))
1255+ if (tree ti = get_template_info (fn))
12581256 if (TI_TEMPLATE (ti) == tmpl
12591257 /* using-declarations can bring in a different
12601258 instantiation of tmpl as a member of a different