Commit fba8a9e3 by Igor Zamyatin Committed by Kirill Yukhin

cp-array-notation.c (expand_an_in_modify_expr): Fix the misprint in error output.

gcc/cp/
	* cp-array-notation.c (expand_an_in_modify_expr): Fix the misprint
	in error output.

From-SVN: r213495
parent ffebf50f
2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com> 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
* cp-array-notation.c (expand_an_in_modify_expr): Fix the misprint
in error output.
2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
PR other/61963 PR other/61963
* parser.c (cp_parser_array_notation): Added check for array_type. * parser.c (cp_parser_array_notation): Added check for array_type.
2014-07-08 Igor Zamyatin <igor.zamyatin@intel.com> 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
PR middle-end/61455 PR middle-end/61455
* cp-array-notation.c (expand_array_notation_exprs): Handling of * cp-array-notation.c (expand_array_notation_exprs): Handling of
......
...@@ -607,7 +607,7 @@ expand_an_in_modify_expr (location_t location, tree lhs, ...@@ -607,7 +607,7 @@ expand_an_in_modify_expr (location_t location, tree lhs,
if (lhs_rank == 0 && rhs_rank != 0) if (lhs_rank == 0 && rhs_rank != 0)
{ {
error_at (location, "%qD cannot be scalar when %qD is not", lhs, rhs); error_at (location, "%qE cannot be scalar when %qE is not", lhs, rhs);
return error_mark_node; return error_mark_node;
} }
if (lhs_rank != 0 && rhs_rank != 0 && lhs_rank != rhs_rank) if (lhs_rank != 0 && rhs_rank != 0 && lhs_rank != rhs_rank)
......
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