c++: uninstantiated template friends
Nathan Sidwell
nathan@acm.org
Thu Dec 3 19:17:07 GMT 2020
template friends need to be recognized by module streaming and
associated with the befriending class. but their context is that of
the friend (a namespace or other class). This adds a flag to mark
such templates, and uses their DECL_CHAIN to point at the befriender.
gcc/cp
* cp-tree.h (DECL_UNINSTANTIATED_TEMPLATE_FRIEND): New.
* pt.c (push_template_decl): Set it.
(tsubst_friend_function): Clear it.
pushing to trunk
--
Nathan Sidwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 22.4-c++-tplfriend.diff
Type: text/x-patch
Size: 2561 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20201203/eb4e538c/attachment.bin>
More information about the Gcc-patches
mailing list