c++: Partially revert: local externs in templates do not get template head
authorNathan Sidwell <nathan@acm.org>
Tue, 15 Sep 2020 14:55:18 +0000 (07:55 -0700)
committerNathan Sidwell <nathan@acm.org>
Tue, 15 Sep 2020 14:57:00 +0000 (07:57 -0700)
commit3304888c252f079a04ff2be95672d8c1d9a7d34f
tree33104f99bdb6ab67cb048d1650831d98a2930802
parent8f0d743c2dee6afae5c6f861b0642b7b112a4a70
c++: Partially revert: local externs in templates do not get template head

Turns out I didn't get OMP reductions correct.  To address those I
need to do some reorganization, so this patch just reverts the
OMP-specific pieces of the local decl changes.

gcc/cp/
* pt.c (push_template_decl_real): OMP reductions retain a template
header.
(tsubst_function_decl): Likewise.
gcc/cp/pt.c