C++: Fix ICE in fold_for_warn on CAST_EXPR (PR c++/83974)
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 23 Jan 2018 21:19:09 +0000 (21:19 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Tue, 23 Jan 2018 21:19:09 +0000 (21:19 +0000)
commit7c719d0849416861fa96317ade2e2035d6ea071b
tree08b305237a653e09040936992dae5bd3e9b2a023
parent508d0c3da24c91bdabf7fbd453b511bfccbb2958
C++: Fix ICE in fold_for_warn on CAST_EXPR (PR c++/83974)

gcc/cp/ChangeLog:
PR c++/83974
* pt.c (tsubst_copy_and_build) <CONSTRUCTOR>: Remove early bailout
for pointer to member function types.

gcc/testsuite/ChangeLog:
PR c++/83974
* g++.dg/warn/pr83974.C: New test case.

From-SVN: r256999
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/pr83974.C [new file with mode: 0644]