]> gcc.gnu.org Git - gcc.git/commit
c++: Improve build_template_decl
authorNathan Sidwell <nathan@acm.org>
Thu, 14 May 2020 13:39:29 +0000 (06:39 -0700)
committerNathan Sidwell <nathan@acm.org>
Thu, 14 May 2020 13:39:29 +0000 (06:39 -0700)
commitc4bff4c230c8d3414bc77f7a58ffc5f61b6bd08c
tree4020d2ec18a19c8c1e247b8f1f43fe6031de115b
parent941c94747007e50ccaae6e94cf0402ff5bb63d43
c++: Improve build_template_decl

I discovered all the users of build_template_decl were explicitly
setting the RESULT and TYPE fields of the built decl.  Let's just have
build_template_decl do that in the first place.

* pt.c (build_template_decl): Init DECL_TEMPLATE_RESULT &
TREE_TYPE here ...
(process_partial_specialization): ... not here ...
(push_template_decl_real, add_inherited_template_parms)
(build_deduction_guide): ... or here.
gcc/cp/ChangeLog
gcc/cp/pt.c
This page took 0.050271 seconds and 5 git commands to generate.