[PATCH v1] libstdc++: Remove unused local type alias <format>.

Luc Grosheintz luc.grosheintz@gmail.com
Wed Oct 15 06:40:12 GMT 2025



On 10/14/25 5:38 PM, Tomasz Kaminski wrote:
> On Tue, Oct 14, 2025 at 5:19 PM Luc Grosheintz <luc.grosheintz@gmail.com>
> wrote:
> 
>> After r16-4421-g59cabe08b57a26 the local type alias _String isn't used
>> anymore and therefore causes warnings when building the tests with
>> `-Wall -Wextra`.
>>
>> libstdc++-v3/ChangeLog:
>>
>>          * include/std/format (_M_format_range): Remove unused local type
>>          alias _String.
>>
>> Signed-off-by: Luc Grosheintz <luc.grosheintz@gmail.com>
>> ---
>>
> LGTM. I will push that to the trunk.
> (This is a obvious change, so it shouldn't require approval).
> 

The script gen_gcc_docs.sh failed due to a timeout:
https://builder.sourceware.org/buildbot/#/builders/346/builds/366

It blames three commits, one of them is this one. I can't see
anything in any of the three commits that could have plausibly
caused it to timeout.

Please let me know if there's anything I can do.

>>   libstdc++-v3/include/std/format | 1 -
>>   1 file changed, 1 deletion(-)
>>
>> diff --git a/libstdc++-v3/include/std/format
>> b/libstdc++-v3/include/std/format
>> index 8ba6af6bd40..1102ac8f6e8 100644
>> --- a/libstdc++-v3/include/std/format
>> +++ b/libstdc++-v3/include/std/format
>> @@ -1426,7 +1426,6 @@ namespace __format
>>          _M_format_range(_Rg&& __rg, basic_format_context<_Out, _CharT>&
>> __fc) const
>>          {
>>            using _Range = remove_reference_t<_Rg>;
>> -         using _String = basic_string<_CharT>;
>>            using _String_view = basic_string_view<_CharT>;
>>            if constexpr (!is_lvalue_reference_v<_Rg>)
>>              return _M_format_range<_Range&>(__rg, __fc);
>> --
>> 2.51.0
>>
>>
> 



More information about the Libstdc++ mailing list