c++: Fix deferred noexcept on constructor [PR93901].
authorJason Merrill <jason@redhat.com>
Thu, 14 May 2020 15:15:27 +0000 (11:15 -0400)
committerJason Merrill <jason@redhat.com>
Thu, 14 May 2020 20:38:30 +0000 (16:38 -0400)
commit4e1592f8e1d6366699e05c0824fc3dc39ca7314b
treefcfc2b956b48825684aa6b62923e73e523e21026
parent3a36428b5fbc825e2d3455f5770b5d6e71c63413
c++: Fix deferred noexcept on constructor [PR93901].

My change in r10-4394 to only update clones when we actually instantiate a
deferred noexcept-spec broke this because deferred parsing updates the
primary function but not the clones.  For GCC 10 I just reverted that
change; this patch adjusts maybe_instantiate_noexcept to update only the
clone passed as the argument.

gcc/cp/ChangeLog
2020-05-14  Jason Merrill  <jason@redhat.com>

PR c++/93901
* pt.c (maybe_instantiate_noexcept): Change clone handling.
gcc/cp/ChangeLog
gcc/cp/pt.c