https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118201
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P4
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Seems I<T>::~I() [with T = F] has been marked DECL_DELETED_FN in
defaulted_late_check
with
if (DECL_DELETED_FN (implicit_fn))
{
DECL_DELETED_FN (fn) = 1;
return;
}
and if I call maybe_explain_implicit_decl on the implicit_fn rather than fn, I
get
pr118201.C:10:7: note: ‘I<F>::~I() noexcept (<uninstantiated>)’ is implicitly
deleted because its exception-specification does not match the implicit
exception-specification ‘noexcept’
10 | class I : public T, public virtual H { ~I () = default; };
| ^
Anyway, seems to be error-recovery, the ICE is after tons of errors and only if
checking, so nothing will happen on release compilers or with explicit
-fchecking
pr118201.C:10: confused by earlier errors, bailing out