[Bug c++/85545] [8 Regression] ICE with static_cast of pointer-to-member-function
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Apr 27 15:01:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85545
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Apr 27 15:00:53 2018
New Revision: 259712
URL: https://gcc.gnu.org/viewcvs?rev=259712&root=gcc&view=rev
Log:
PR c++/85545 - ICE with noexcept PMF conversion.
* cvt.c (cp_fold_convert): Pass PMF CONSTRUCTORs to
build_ptrmemfunc.
* typeck.c (build_ptrmemfunc): Don't build a NOP_EXPR for zero
adjustment.
(build_ptrmemfunc_access_expr): Special-case CONSTRUCTORs.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cvt.c
trunk/gcc/cp/typeck.c
More information about the Gcc-bugs
mailing list