c++: Adjust push_template_decl_real
authorNathan Sidwell <nathan@acm.org>
Thu, 14 May 2020 14:13:54 +0000 (07:13 -0700)
committerNathan Sidwell <nathan@acm.org>
Thu, 14 May 2020 14:18:04 +0000 (07:18 -0700)
commit5adbd0907563f494b602b9f38283d29c7b029bdf
tree305e967d0389fde7039edf620d1f55d346483e7b
parentc4bff4c230c8d3414bc77f7a58ffc5f61b6bd08c
c++: Adjust push_template_decl_real

Push_template_decl_real's friend-pushing logic was confusing me.  This
is more understandable.  Fix a latent type bug I disovered.

* pt.c (push_template_decl_real): Adjust friend pushing logic.
Reinit template type.
gcc/cp/ChangeLog
gcc/cp/pt.c