https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89391
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Feb 19 08:40:07 2019 New Revision: 269008 URL: https://gcc.gnu.org/viewcvs?rev=269008&root=gcc&view=rev Log: PR c++/89391 * typeck.c (build_reinterpret_cast_1): Don't handle void to && conversion go through build_target_expr_with_type. * g++.dg/cpp0x/reinterpret_cast2.C: New test. Added: trunk/gcc/testsuite/g++.dg/cpp0x/reinterpret_cast2.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/typeck.c trunk/gcc/testsuite/ChangeLog