Commit c1299a9e by Jakub Jelinek Committed by Jakub Jelinek

decl.c (cp_finish_decomp): Don't adjust eltscnt when calling inform_n.

	* decl.c (cp_finish_decomp): Don't adjust eltscnt when calling
	inform_n.

From-SVN: r258058
parent ce579a4f
2018-02-28 Jakub Jelinek <jakub@redhat.com>
* decl.c (cp_finish_decomp): Don't adjust eltscnt when calling
inform_n.
2018-02-27 Martin Sebor <msebor@redhat.com>
* pt.c: Avoid including <string> directly.
......
......@@ -7535,10 +7535,7 @@ cp_finish_decomp (tree decl, tree first, unsigned int count)
error_n (loc, count,
"only %u name provided for structured binding",
"only %u names provided for structured binding", count);
/* Some languages have special plural rules even for large values,
but it is periodic with period of 10, 100, 1000 etc. */
inform_n (loc, eltscnt > INT_MAX
? (eltscnt % 1000000) + 1000000 : eltscnt,
inform_n (loc, eltscnt,
"while %qT decomposes into %wu element",
"while %qT decomposes into %wu elements",
type, eltscnt);
......
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