https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33799
--- Comment #13 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:20afdcd36982752ba012960b862e9be7154b1274 commit r10-6183-g20afdcd36982752ba012960b862e9be7154b1274 Author: Jason Merrill <ja...@redhat.com> Date: Thu Jan 23 12:32:02 2020 -0500 c++: Fix ICE with defaulted destructor and template. In a template we don't instantiate a deferred noexcept-spec, and we don't need it because we aren't going to do anything with the value of throwing_cleanup in a template anyway. PR c++/93345 - ICE with defaulted dtor and template. PR c++/33799 * decl.c (cxx_maybe_build_cleanup): Don't try to set throwing_cleanup in a template.