[Bug c++/124058] [15/16 Regression] 20_util/pair/cons/99957.cc no longer generate expected warnings with -std=gnu++1[147]

azoff at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Feb 11 08:24:07 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124058

--- Comment #2 from Torbjorn SVENSSON <azoff at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #1)
> Assuming trunk is also affected.

Yes and no.
In r16-6183-ge0fa6ea45fbd02, the default -std option was changed from 17 to 20,
thus trunk reports this test as unsupported.
However, if the test is ran with -std=gnu++17, then yes, the expected warnings
are not generated.


More information about the Gcc-bugs mailing list