https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92201
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Oct 29 20:58:47 2019 New Revision: 277592 URL: https://gcc.gnu.org/viewcvs?rev=277592&root=gcc&view=rev Log: 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. Added: trunk/gcc/testsuite/g++.dg/other/pr92201.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/cp-gimplify.c trunk/gcc/testsuite/ChangeLog