This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 1/3, Cilk+] Fix for PR61455
- From: "Zamyatin, Igor" <igor dot zamyatin at intel dot com>
- To: "GCC Patches (gcc-patches at gcc dot gnu dot org)" <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 12 Jul 2014 09:51:34 +0000
- Subject: [PATCH 1/3, Cilk+] Fix for PR61455
- Authentication-results: sourceware.org; auth=none
Hi!
This simple change fixes the issue with printing of error message (happened in unprintable_error routine of the PR's test)
Regtested with the next patch of this chain.
Ok for trunk/4.9?
Thanks,
Igor
gcc/cp/Changelog:
2014-07-08 Igor Zamyatin <igor.zamyatin@intel.com>
* cp-array-notation.c (expand_an_in_modify_expr): Fix the misprint
in error output.
diff --git a/gcc/cp/cp-array-notation.c b/gcc/cp/cp-array-notation.c
index b45449b..6b910fc 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)