]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: concepts and conversions [PR112632]
authorJason Merrill <jason@redhat.com>
Tue, 23 Sep 2025 10:19:49 +0000 (11:19 +0100)
committerJason Merrill <jason@redhat.com>
Sat, 27 Sep 2025 08:06:34 +0000 (09:06 +0100)
commita0536f80ffa6cde5900644dcd129d2086c237a8a
tree6680c096b2bed87b363b04e6f9b65ef7107c8ed7
parent6fda31f7b3f133a31e0a7179a82fe73b081ebbc5
c++: concepts and conversions [PR112632]

One case missed in my fix for this PR: Here we were omitting the
IMPLICIT_CONV_EXPR that expresses the conversion from int to char because
the target type was non-dependent and the argument was not type-dependent.
But we still need it if the argument is value-dependent.

PR c++/112632

gcc/cp/ChangeLog:

* pt.cc (convert_template_argument): Also force IMPLICIT_CONV_EXPR
if the argument is value-dependent.

gcc/testsuite/ChangeLog:

* g++.dg/cpp2a/concepts-conv4.C: New test.
gcc/cp/pt.cc
gcc/testsuite/g++.dg/cpp2a/concepts-conv4.C [new file with mode: 0644]