PR c++/85356 - ICE with pointer to member function.
authorJason Merrill <jason@redhat.com>
Thu, 12 Apr 2018 20:03:33 +0000 (16:03 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 12 Apr 2018 20:03:33 +0000 (16:03 -0400)
commit38f3a877505df9a6e355add3424120f39450c432
tree3fd42df87398348c6dd035d4b1fdbb12ec2da387
parent4930c53ee69f18a6fd689527864d419ce0333e7a
PR c++/85356 - ICE with pointer to member function.

* pt.c (maybe_instantiate_noexcept): Do instantiate in templates if
flag_noexcept_type.  Build the new spec within the function context.
* except.c (build_noexcept_spec): Do get constant value in templates
if flag_noexcept_type.
* decl.c (check_redeclaration_exception_specification): Don't
instantiate noexcept on a dependent declaration.

From-SVN: r259356
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/except.c
gcc/cp/pt.c
gcc/testsuite/g++.dg/template/mem_func_ptr2.C [new file with mode: 0644]