]> gcc.gnu.org Git - gcc.git/commit
c++: CTAD and member alias template [PR102123]
authorJason Merrill <jason@redhat.com>
Sun, 27 Mar 2022 03:54:22 +0000 (23:54 -0400)
committerJason Merrill <jason@redhat.com>
Mon, 28 Mar 2022 13:35:58 +0000 (09:35 -0400)
commitb854ce130ebbfdf2f882ef08538746030513b44b
tree014b61026e6fa7636eee1eedc7f30deb230550f2
parentc7361eb36fa50307c9f7cfca36c9f58ce24f8f54
c++: CTAD and member alias template [PR102123]

When building a deduction guide from the Test constructor, we need to
rewrite the use of _dummy into a dependent reference, i.e. Test<T>::template
_dummy.  We were using SCOPE_REF for both type and non-type templates; we
need to use UNBOUND_CLASS_TEMPLATE for type templates.

PR c++/102123

gcc/cp/ChangeLog:

* pt.cc (tsubst_copy): Use make_unbound_class_template for rewriting
a type template reference.

gcc/testsuite/ChangeLog:

* g++.dg/cpp1z/class-deduction110.C: New test.
gcc/cp/pt.cc
gcc/testsuite/g++.dg/cpp1z/class-deduction110.C [new file with mode: 0644]
This page took 0.056137 seconds and 5 git commands to generate.