re PR c++/84940 (internal compiler error: in build_value_init_noctor, at cp/init...
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 27 Sep 2018 08:33:41 +0000 (08:33 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 27 Sep 2018 08:33:41 +0000 (08:33 +0000)
commit0798984a5a59e9162596db04cbf9eacc8541da7f
tree442d7e3a69967678f12e11b44dfba8cae677444d
parent291a9e980ef059c46476212e4b3e88fb07e11b00
re PR c++/84940 (internal compiler error: in build_value_init_noctor, at cp/init.c:465)

/cp
2018-09-27  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/84940
* semantics.c (finish_unary_op_expr): Check return value of
build_x_unary_op for error_mark_node.

/testsuite
2018-09-27  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/84940
* g++.dg/expr/unary4.C: New.

From-SVN: r264664
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/expr/unary4.C [new file with mode: 0644]