https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84940
--- Comment #6 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> --- Author: paolo Date: Thu Sep 27 08:33:41 2018 New Revision: 264664 URL: https://gcc.gnu.org/viewcvs?rev=264664&root=gcc&view=rev Log: /cp 2018-09-27 Paolo Carlini <paolo.carl...@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.carl...@oracle.com> PR c++/84940 * g++.dg/expr/unary4.C: New. Added: trunk/gcc/testsuite/g++.dg/expr/unary4.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/semantics.c trunk/gcc/testsuite/ChangeLog