diff options
author | Jason Merrill <jason@redhat.com> | 2024-08-05 13:20:17 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2024-08-06 13:04:23 -0400 |
commit | b2a8ee0e5d8cfa92bafd0db4b03626b26ac21948 (patch) | |
tree | 0787904e752335118db3fb2a9c9781c9304e06b6 /libcpp | |
parent | 4add6cd341a779e980e41ed6fb49175fca37496e (diff) | |
download | gcc-b2a8ee0e5d8cfa92bafd0db4b03626b26ac21948.zip gcc-b2a8ee0e5d8cfa92bafd0db4b03626b26ac21948.tar.gz gcc-b2a8ee0e5d8cfa92bafd0db4b03626b26ac21948.tar.bz2 |
c++: more non-type template parms [PR116223]
Building on the last patch, deduction should probably look through all
IMPLICIT_CONV_EXPR like we do other conversions.
One resulting regression turned out to be due to PR94568, fixed separately.
The one other regression was for a seeming mismatch between a function and
its address, handled here. Before this change we treated the
IMPLICIT_CONV_EXPR as dependent because the template parameter has dependent
type.
PR c++/116223
gcc/cp/ChangeLog:
* pt.cc (deducible_expression): Strip all IMPLICIT_CONV_EXPR.
(unify): Likewise. Handle resulting function/addr mismatch.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions