https://gcc.gnu.org/g:d67fa1bc7b98b70ff7964729f8a5c7496fd9182a
commit r17-6087-gd67fa1bc7b98b70ff7964729f8a5c7496fd9182a Author: Shiva S <[email protected]> Date: Mon Nov 9 23:14:26 2026 -0700 [PATCH] gimple-ssa-sprintf: Remove unused format_result::operator++ (int) The postfix increment operator is never used. It copies format_result, whose copy constructor is declared private and never defined, so it would not link if it were used, and some compilers reject it outright. --- Bootstrapped and regression-tested on x86_64-pc-linux-gnu and aarch64-unknown-linux-gnu. I do not have write access; please commit if approved. gcc/ChangeLog: * gimple-ssa-sprintf.cc (format_result::operator++ (int)): Remove. Signed-off-by: Shiva <[email protected]> Diff: --- gcc/gimple-ssa-sprintf.cc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/gcc/gimple-ssa-sprintf.cc b/gcc/gimple-ssa-sprintf.cc index b4c1490ed88e..d23e4dfc2294 100644 --- a/gcc/gimple-ssa-sprintf.cc +++ b/gcc/gimple-ssa-sprintf.cc @@ -728,14 +728,6 @@ struct format_result return *this += 1; } - /* Postincrement the number of output characters by 1. */ - format_result operator++ (int) - { - format_result prev (*this); - *this += 1; - return prev; - } - /* Increment the number of output characters by N. */ format_result& operator+= (unsigned HOST_WIDE_INT);
