]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: alias CTAD refactoring [PR104470]
authorJason Merrill <jason@redhat.com>
Tue, 26 Apr 2022 22:32:51 +0000 (18:32 -0400)
committerJason Merrill <jason@redhat.com>
Wed, 4 May 2022 21:59:51 +0000 (17:59 -0400)
commita47ab705c2c9f07f08fde499d6be4682efe4b626
tree0ef026e9f7f65fc5da04e8a9e41efa3604083ac6
parent8a98e3ff7e80bf2936f163d50309fd88d72564a0
c++: alias CTAD refactoring [PR104470]

In my previous PR104470 patch I added yet another place that needs to handle
dependent member rewriting for deduction guides; this patches centralizes
rewriting into maybe_dependent_member_ref.  tsubst_baselink still has its
own handling because that's simpler than teaching maybe_dependent_member_ref
about BASELINKs.

PR c++/104470

gcc/cp/ChangeLog:

* pt.cc (maybe_dependent_member_ref): Handle types.
(tsubst, tsubst_copy): Use it.
(tsubst_aggr_type, instantiate_alias_template): Don't handle
tf_dguide here.
gcc/cp/pt.cc