[Bug c++/105964] [12/13 Regression] Return type deduction fails during NTTP use of function dependent on template parameter
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jun 23 03:23:09 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105964
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:
https://gcc.gnu.org/g:d29f61a3291a8c4cff0bd754fa3bb8e9399589bc
commit r13-1210-gd29f61a3291a8c4cff0bd754fa3bb8e9399589bc
Author: Jason Merrill <jason@redhat.com>
Date: Wed Jun 22 18:19:11 2022 -0400
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.
More information about the Gcc-bugs
mailing list