PR c++/85356 - ICE with pointer to member function.
commit3be2e5e6971dbe3bec0ce5e694e792c725720cd0
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Apr 2018 20:03:33 +0000 (12 20:03 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Apr 2018 20:03:33 +0000 (12 20:03 +0000)
tree3fd42df87398348c6dd035d4b1fdbb12ec2da387
parenta34934c29c7b0bc8cf1a1101f13977661f3745ec
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259356 138bc75d-0d04-0410-961f-82ee72b054a4
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]