c++: alias template template_info setting

Nathan Sidwell nathan@acm.org
Tue Aug 18 21:52:12 GMT 2020


During the construction of alias templates we can alter its
template_info.  This is really weird, because that's morally immutable
data.  In this case it's ok, but let's not create a duplicate
template_info, and add asserts to make sure it is changing in exactly
the way we expect.

Needless to say modules fell over the duplicated template_info and got 
very confused.

         gcc/cp/
         * cp-tree.h (SET_TYPE_TEMPLTE_INFO): Do not deal with ALIAS 
templates.
         * pt.c (lookup_template_class_1): Special-case alias template
         template_info setting.


-- 
Nathan Sidwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alias.diff
Type: text/x-patch
Size: 2326 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200818/607c6185/attachment.bin>


More information about the Gcc-patches mailing list