From ebe1cf5d085c467218cca68b2e2366a359047cc4 Mon Sep 17 00:00:00 2001 From: kyukhin Date: Fri, 1 Aug 2014 17:23:40 +0000 Subject: [PATCH] gcc/cp/ * cp-array-notation.c (expand_an_in_modify_expr): Fix the misprint in error output. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213495 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/ChangeLog | 7 ++++++- gcc/cp/cp-array-notation.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 19244dd473a..6a4e57d0e6d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,9 +1,14 @@ 2014-08-01 Igor Zamyatin + * cp-array-notation.c (expand_an_in_modify_expr): Fix the misprint + in error output. + +2014-08-01 Igor Zamyatin + PR other/61963 * parser.c (cp_parser_array_notation): Added check for array_type. -2014-07-08 Igor Zamyatin +2014-08-01 Igor Zamyatin PR middle-end/61455 * cp-array-notation.c (expand_array_notation_exprs): Handling of diff --git a/gcc/cp/cp-array-notation.c b/gcc/cp/cp-array-notation.c index 31253ff7d07..6b910fc3a76 100644 --- a/gcc/cp/cp-array-notation.c +++ b/gcc/cp/cp-array-notation.c @@ -607,7 +607,7 @@ expand_an_in_modify_expr (location_t location, tree lhs, 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; } if (lhs_rank != 0 && rhs_rank != 0 && lhs_rank != rhs_rank) -- 2.11.4.GIT