re PR c++/83634 (ICE in useless_type_conversion_p, at gimple-expr.c:86)
authorJakub Jelinek <jakub@redhat.com>
Wed, 3 Jan 2018 12:16:13 +0000 (13:16 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 3 Jan 2018 12:16:13 +0000 (13:16 +0100)
commit19c37faad10950f693872a4be018cfd9bc81804a
treef6d5874b22a41e657dd0d804fcb300c68bfbf0ed
parent8987beac8c4bf6e0b99cb298126041da21964ca4
re PR c++/83634 (ICE in useless_type_conversion_p, at gimple-expr.c:86)

PR c++/83634
* cp-gimplify.c (cp_fold) <case NOP_EXPR>: If the operand folds to
error_mark_node, return error_mark_node.

* g++.dg/parse/pr83634.C: New test.

From-SVN: r256174
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/pr83634.C [new file with mode: 0644]