[PATCH][_GLIBCXX_DEBUG][__cplusplus >= 201103L] Remove useless workaround

Jonathan Wakely jwakely@redhat.com
Sat Mar 21 16:03:33 GMT 2026


On Sat, 21 Mar 2026 at 13:45, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
>
>
>
> On Sat, 21 Mar 2026, 13:36 François Dumont, <frs.dumont@gmail.com> wrote:
>>
>> Still no chance to reproduce this problem.
>>
>> I think the patch is good and that you are simply missing it in the below build.
>>
>> The compiler is reporting the error coming from:
>>
>> /home/tkaminsk/build/gcc/16/x86_64-pc-linux-gnu/libstdc++-v3/include/debug/string:238:   required from '__gnu_debug::basic_string<_CharT, _Traits, _Allocator>::basic_string(_InputIterator, _InputIterator, const _Allocator&) [with _InputIterator = int; _CharT = char; _Traits = std::char_traits<char>; _Allocator = std::allocator<char>]'
>>
>> Line 238 is the former line of the call to __glibcxx_check_valid_constructor_range(__begin, __end) that is leading to the error.
>>
>> After my patch it is on line 243.
>
>
> Tomasz and I are both testing current trunk. If we're missing your patch, then it means it hasn't been pushed to trunk.

I see the problem, the errors are with -D_GLIBCXX_USE_CXX11_ABI=0 and
-D_GLIBCXX_DEBUG

e.g.
make check RUNTESTFLAGS="conformance.exp=28_regex/match_results/swap.cc
--target_board=unix/-D_GLIBCXX_USE_CXX11_ABI=0/
-D_GLIBCXX_DEBUG"



More information about the Libstdc++ mailing list