]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++ __integer_pack conversion again [PR111357]
authorJason Merrill <jason@redhat.com>
Thu, 21 Sep 2023 14:39:46 +0000 (15:39 +0100)
committerJason Merrill <jason@redhat.com>
Fri, 22 Sep 2023 13:23:26 +0000 (14:23 +0100)
commitfd35d72a3dcd5ba14d81a1890236acd0145497e1
tree4fdf6a02899b36cfc5aafd37ca05ed054c3d3d90
parent22cda0ca5fb406f22925bbf51ab152a958e3319d
c++ __integer_pack conversion again [PR111357]

As Jakub pointed out, the real problem here is that in a partial
substitution we're forgetting the conversion to the type of the non-type
template argument, because maybe_convert_nontype_argument doesn't do
anything with value-dependent arguments.  I'm experimenting with changing
that, but in the meantime we can work around it here.

PR c++/111357

gcc/cp/ChangeLog:

* pt.cc (expand_integer_pack): Use IMPLICIT_CONV_EXPR.
gcc/cp/pt.cc