PR c++/85545 - ICE with noexcept PMF conversion.
authorJason Merrill <jason@redhat.com>
Fri, 27 Apr 2018 15:00:53 +0000 (11:00 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 27 Apr 2018 15:00:53 +0000 (11:00 -0400)
commit6d0e87b25ee21493d4f47bb39aee3e2d33cb08d9
treedf50d3a40a9ba75887fd0d79d59d06b3940f8dc9
parent4bdc2738ce61b5f380930f670709ed9e9cd7cf2a
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.

From-SVN: r259712
gcc/cp/ChangeLog
gcc/cp/cvt.c
gcc/cp/typeck.c