re PR c++/89391 (ICE in build_target_expr_with_type, at cp/tree.c:795)
authorJakub Jelinek <jakub@redhat.com>
Tue, 19 Feb 2019 08:40:07 +0000 (09:40 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 19 Feb 2019 08:40:07 +0000 (09:40 +0100)
commit50aaebab9410ae7afd6875fb396bdc23f6e4c32f
tree05160f90c423f1e64ab4595be11149f54c491e9c
parent883c07964f42c00b66dbb81d2ec742e4ee23a3c2
re PR c++/89391 (ICE in build_target_expr_with_type, at cp/tree.c:795)

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.

From-SVN: r269008
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/reinterpret_cast2.C [new file with mode: 0644]