* semantics.c (finish_expr_stmt): If expr is error_mark_node,
make sure we've seen_error().
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233183
138bc75d-0d04-0410-961f-
82ee72b054a4
+2016-02-05 Jason Merrill <jason@redhat.com>
+
+ PR c++/68948
+ * semantics.c (finish_expr_stmt): If expr is error_mark_node,
+ make sure we've seen_error().
+
2016-02-05 Patrick Palka <ppalka@gcc.gnu.org>
PR c++/68948
if (expr != NULL_TREE)
{
+ /* If we ran into a problem, make sure we complained. */
+ gcc_assert (expr != error_mark_node || seen_error ());
+
if (!processing_template_decl)
{
if (warn_sequence_point)