SUNDAY, APRIL 19, 2026 GCC DIGEST · OPEN-SOURCE SYSTEMS DAILY VOL. 1 · NO. 109
Late Edition · APRIL 19, 2026 · VOL. 1 · NO. 109
The GCC Digest
— A Daily Record of the GNU Compiler Collection —
libstdc++ Impact 5 / 10

libstdc++: Fix constraint recursion in std::indirect's operator==.

This patch avoids constraint recursion in `std::indirect`'s `operator==` by using a dependent function parameter.

The operator== for std::indirect was susceptible to constraint recursion due to the way the Mandates were implemented as an associated constraint. The fix replaces the non-dependent std::indirect function parameter with a dependent one, similar to the fix applied to std::expected and std::basic_const_iterator. A new test case has also been added.

Filed Under: libstdc++C++templatesbugfix