https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90490
--- Comment #8 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Tue Jul 2 00:23:41 2019 New Revision: 272918 URL: https://gcc.gnu.org/viewcvs?rev=272918&root=gcc&view=rev Log: PR c++/90490 - fix decltype issues in noexcept-specifier. * except.c (build_noexcept_spec): Call instantiate_non_dependent_expr_sfinae before build_converted_constant_expr instead of calling instantiate_non_dependent_expr after it. Add processing_template_decl_sentinel. * g++.dg/cpp0x/noexcept43.C: New test. * g++.dg/cpp0x/noexcept44.C: New test. Added: branches/gcc-9-branch/gcc/testsuite/g++.dg/cpp0x/noexcept43.C branches/gcc-9-branch/gcc/testsuite/g++.dg/cpp0x/noexcept44.C Modified: branches/gcc-9-branch/gcc/cp/ChangeLog branches/gcc-9-branch/gcc/cp/except.c