]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: CWG2369 workaround and ... [PR120185]
authorJason Merrill <jason@redhat.com>
Fri, 9 May 2025 15:05:13 +0000 (11:05 -0400)
committerJason Merrill <jason@redhat.com>
Fri, 9 May 2025 16:09:42 +0000 (12:09 -0400)
commit21842fe301caa5dbc69a69033cdc17bb29b8c399
tree6e82a106e5164d6d5f51545b4835da6f0812588a
parent3ae6b582d629e63e12d0ecfb7cbe44033778f88c
c++: CWG2369 workaround and ... [PR120185]

My r16-479 adjustment to the PR99599 workaround broke on a class with a
varargs constructor.

It also occurred to me that we don't need to do non-dep conversion checking
in two phases when concepts aren't supported.

PR c++/99599
PR c++/120185

gcc/cp/ChangeLog:

* class.cc (type_has_converting_constructor): Handle null parm.
* pt.cc (fn_type_unification): Skip early non-dep checking if
no concepts.

gcc/testsuite/ChangeLog:

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