diff options
author | Jason Merrill <jason@redhat.com> | 2024-08-05 11:21:05 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2024-08-06 13:04:23 -0400 |
commit | 4add6cd341a779e980e41ed6fb49175fca37496e (patch) | |
tree | 36f78c59bb39e198699e522020e6dc924572eb8a /libcpp | |
parent | 352c21c8a22a48d34cbd2fbfe398ee12c0a1d681 (diff) | |
download | gcc-4add6cd341a779e980e41ed6fb49175fca37496e.zip gcc-4add6cd341a779e980e41ed6fb49175fca37496e.tar.gz gcc-4add6cd341a779e980e41ed6fb49175fca37496e.tar.bz2 |
c++: alias and non-type template parm [PR116223]
My r14-8291 for PR112632 introduced IMPLICIT_CONV_EXPR_FORCED to express
conversions to the type of an alias template parameter. In this example,
that broke deduction of X in the call to foo, so let's teach deduction to
look through it.
PR c++/116223
PR c++/112632
gcc/cp/ChangeLog:
* pt.cc (deducible_expression): Also look through
IMPLICIT_CONV_EXPR_FORCED.
(unify): Likewise.
gcc/testsuite/ChangeLog:
* g++.dg/cpp1z/nontype-auto25.C: New test.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions