Commit 0fd9d492 by Jason Merrill Committed by Jason Merrill

Make issues similar to PR c++/68948 fail loudly.

	* semantics.c (finish_expr_stmt): If expr is error_mark_node,
	make sure we've seen_error().

From-SVN: r233183
parent f7dfa966
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> 2016-02-05 Patrick Palka <ppalka@gcc.gnu.org>
PR c++/68948 PR c++/68948
......
...@@ -673,6 +673,9 @@ finish_expr_stmt (tree expr) ...@@ -673,6 +673,9 @@ finish_expr_stmt (tree expr)
if (expr != NULL_TREE) 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 (!processing_template_decl)
{ {
if (warn_sequence_point) if (warn_sequence_point)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment