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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Jonathan Wakely
<[email protected]>:

https://gcc.gnu.org/g:679af7b1037ae8fd4fe3f7b22ba03673b1af8c98

commit r14-11452-g679af7b1037ae8fd4fe3f7b22ba03673b1af8c98
Author: Jonathan Wakely <[email protected]>
Date:   Thu Feb 27 15:48:49 2025 +0000

    libstdc++: Add static_assertions to ranges::to adaptor factory [PR112803]

    The standard requires that we reject attempts to create a ranges::to
    adaptor for cv-qualified types and non-class types. Currently we only
    diagnose it once the adaptor is used in a pipeline.

    This adds static assertions to diagnose it immediately.

    libstdc++-v3/ChangeLog:

            PR libstdc++/112803
            * include/std/ranges (ranges::to): Add static assertions to
            enforce Mandates conditions.
            * testsuite/std/ranges/conv/112803.cc: New test.

    (cherry picked from commit a9cfcd0d9e3780c71442057f636f62a7142056cb)
  • [Bug libstdc++/112803] <rang... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to