re PR c++/92201 (ICE: ‘verify_gimple’ failed with -std=c++2a)
authorJakub Jelinek <jakub@redhat.com>
Tue, 29 Oct 2019 20:58:47 +0000 (21:58 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 29 Oct 2019 20:58:47 +0000 (21:58 +0100)
commit6835f8a04a062c3d3276a4a723a9237b1eaf835b
tree9e61ca3f7d299b22df9358cdccfbb0e319d9995f
parent0f1848002a137f3cac5026c5a3af6e16ceabe552
re PR c++/92201 (ICE: ‘verify_gimple’ failed with -std=c++2a)

PR c++/92201
* cp-gimplify.c (cp_gimplify_expr): If gimplify_to_rvalue changes the
function pointer type, re-add cast to the original one.

* g++.dg/other/pr92201.C: New test.

From-SVN: r277592
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/pr92201.C [new file with mode: 0644]