cp-array-notation.c (expand_an_in_modify_expr): Fix the misprint in error output.
authorIgor Zamyatin <igor.zamyatin@intel.com>
Fri, 1 Aug 2014 17:23:40 +0000 (17:23 +0000)
committerKirill Yukhin <kyukhin@gcc.gnu.org>
Fri, 1 Aug 2014 17:23:40 +0000 (17:23 +0000)
gcc/cp/
* cp-array-notation.c (expand_an_in_modify_expr): Fix the misprint
in error output.

From-SVN: r213495

gcc/cp/ChangeLog
gcc/cp/cp-array-notation.c

index 19244dd473af5f873b9fd544668478bd28a2a60f..6a4e57d0e6da0ee81af3663ad6c8180a90bf98d9 100644 (file)
@@ -1,9 +1,14 @@
+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
        * 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
        * cp-array-notation.c (expand_array_notation_exprs): Handling of
index 31253ff7d07a01f8e1631db775be2864a8c82edb..6b910fc3a76fbb28b7281eac256e33cda468cbb8 100644 (file)
@@ -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)