]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: dependence of baselink [PR105964]
authorJason Merrill <jason@redhat.com>
Wed, 22 Jun 2022 22:19:11 +0000 (18:19 -0400)
committerJason Merrill <jason@redhat.com>
Thu, 23 Jun 2022 03:23:01 +0000 (23:23 -0400)
commitd29f61a3291a8c4cff0bd754fa3bb8e9399589bc
tree411de58233950f3fca46854527f13b8f905f648c
parent3104a9fa7e704d859cec46afba8b51cb1a233b40
c++: dependence of baselink [PR105964]

helper<token>::c isn't dependent just because we haven't deduced its return
type yet.  type_dependent_expression_p already knows how to deal with that
for bare FUNCTION_DECL, but needs to learn to look through a BASELINK.

PR c++/105964

gcc/cp/ChangeLog:

* pt.cc (type_dependent_expression_p): Look through BASELINK.

gcc/testsuite/ChangeLog:

* g++.dg/cpp1z/nontype-auto21.C: New test.
gcc/cp/pt.cc
gcc/testsuite/g++.dg/cpp1z/nontype-auto21.C [new file with mode: 0644]