PR c++/90490 - fix decltype issues in noexcept-specifier.
authorMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 21 Jun 2019 20:19:24 +0000 (20:19 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 21 Jun 2019 20:19:24 +0000 (20:19 +0000)
commit4c60db9a7b033fc58a93fd93eb36a4f0bb311b63
tree32f0ebc475ff899a3bddcfb9f97c178b8c679703
parentc27d68ee6d1a15cc12ef20458342202c6c9d4203
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.

From-SVN: r272568
gcc/cp/ChangeLog
gcc/cp/except.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/noexcept43.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/noexcept44.C [new file with mode: 0644]