[Bug c++/85356] [7 Regression] ICE with operator=
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 12 20:04:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85356
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Apr 12 20:03:33 2018
New Revision: 259356
URL: https://gcc.gnu.org/viewcvs?rev=259356&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/template/mem_func_ptr2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/cp/except.c
trunk/gcc/cp/pt.c
More information about the Gcc-bugs
mailing list