]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: one more PR99599 tweak
authorJason Merrill <jason@redhat.com>
Wed, 14 May 2025 14:23:32 +0000 (10:23 -0400)
committerJason Merrill <jason@redhat.com>
Thu, 15 May 2025 14:30:56 +0000 (10:30 -0400)
commit2ee1fce9fc35de21b28823ccae433c90a0ce270b
treea39fee2874de0264ba6758b8222f812dd0c55657
parentf28ff1e4f1c91f46d80e26dd77917e47cdd41bbe
c++: one more PR99599 tweak

Patrick pointed out that if the parm/arg types aren't complete yet at this
point, it would affect the type_has_converting_constructor and
TYPE_HAS_CONVERSION tests.  I don't have a testcase, but it makes sense for
safety.

PR c++/99599

gcc/cp/ChangeLog:

* pt.cc (conversion_may_instantiate_p): Make sure
classes are complete.
gcc/cp/pt.cc