]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: alias template template_info setting
authorNathan Sidwell <nathan@acm.org>
Tue, 18 Aug 2020 21:48:58 +0000 (14:48 -0700)
committerNathan Sidwell <nathan@acm.org>
Tue, 18 Aug 2020 21:52:22 +0000 (14:52 -0700)
commitea2722934fc8238e4a9eb41586ca106448faa940
treece2fde11745762f99642d927dde02cf4bb91e4cd
parent94bedeaf694c728607a718d599edb4d74a2813c0
c++: alias template template_info setting

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.

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.
gcc/cp/cp-tree.h
gcc/cp/pt.c