https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115772
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- The https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2280r4.html change was approved by the C++ committee as a defect report for older standards, so this change is expected to apply to C++17. So not a bug.