c++: Member fns and deduction guide rewriting [PR98929]
authorJason Merrill <jason@redhat.com>
Tue, 2 Feb 2021 15:08:48 +0000 (10:08 -0500)
committerJason Merrill <jason@redhat.com>
Tue, 2 Feb 2021 17:11:39 +0000 (12:11 -0500)
commit709718d4d89e5976257f53e67dcb8ba704574c56
tree045290607875a0c61043a01085bc7b86614eba64
parentd14cf89b94299d6d66c150fbbb9899a5dd91e7d4
c++: Member fns and deduction guide rewriting [PR98929]

My patch for 96199 had us re-substitute the parameter types of a constructor
in order to rewrite mentions of members into dependent references.  We need
to do that for member functions, too.

gcc/cp/ChangeLog:

PR c++/98929
PR c++/96199
* error.c (dump_expr): Ignore dummy object.
* pt.c (tsubst_baselink): Handle dependent scope.

gcc/testsuite/ChangeLog:

PR c++/98929
* g++.dg/cpp1z/class-deduction-decltype1.C: New test.
gcc/cp/error.c
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1z/class-deduction-decltype1.C [new file with mode: 0644]