GCC with patches for OS216
修訂 | ddd792fa53345180c782494aa597e438a73b6248 (tree) |
---|---|
時間 | 2020-01-15 06:08:14 |
作者 | Nathan Sidwell <nathans@fb.c...> |
Commiter | Nathan Sidwell |
[PR90916] Use TI accessor.
PR c++/90916
* pt.c (retrieve_specialization): Use get_template_info, not open
coding access.
@@ -1,5 +1,9 @@ | ||
1 | 1 | 2020-01-14 Nathan Sidwell <nathan@acm.org> |
2 | 2 | |
3 | + PT c++/90916 | |
4 | + * pt.c (retrieve_specialization): Use get_template_info, not open | |
5 | + coding access. | |
6 | + | |
3 | 7 | PR c++/90916 |
4 | 8 | * pt.c (retrieve_specialization): Get the TI from the decl or the |
5 | 9 | classtype as appropriate. |
@@ -1252,9 +1252,7 @@ retrieve_specialization (tree tmpl, tree args, hashval_t hash) | ||
1252 | 1252 | for (ovl_iterator iter (fns); iter; ++iter) |
1253 | 1253 | { |
1254 | 1254 | 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)) | |
1258 | 1256 | if (TI_TEMPLATE (ti) == tmpl |
1259 | 1257 | /* using-declarations can bring in a different |
1260 | 1258 | instantiation of tmpl as a member of a different |