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

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <[email protected]>:

https://gcc.gnu.org/g:1ec0c5428cf84e52e5148633591f0270a566bb88

commit r17-1995-g1ec0c5428cf84e52e5148633591f0270a566bb88
Author: Jakub Jelinek <[email protected]>
Date:   Tue Jun 30 09:22:16 2026 +0200

    c++, libcpp: Implement C++29 P3540R3 - #embed offset parameter [PR125837]

    The following patch implements the C++29 P3540R3 - #embed offset parameter
    paper.

    2026-06-30  Jakub Jelinek  <[email protected]>

            PR c++/125837
    gcc/
            * doc/invoke.texi (Wc++29-extensions): Document.
    gcc/c-family/
            * c.opt (Wc++29-extensions): New option.
            * c-cppbuiltin.cc (c_cpp_builtins): Change __cpp_pp_embed value for
            C++29.
    gcc/testsuite/
            * g++.dg/cpp29/feat-cxx29.C (__cpp_pp_embed): Expect 202606L
            rather than 202502L.
            * c-c++-common/cpp/embed-18.c: Adjust expected diagnostics.
            * g++.dg/cpp/embed-30.C: New test.
            * g++.dg/cpp/embed-31.C: New test.
            * g++.dg/cpp/embed-32.C: New test.
    libcpp/
            * include/cpplib.h: Implement C++29 P3540R3 - #embed offset
parameter.
            (enum cpp_warning_reason): Add CPP_W_CXX29_EXTENSIONS.
            * directives.cc (EMBED_PARAMS): Add OFFSET.
            (enum embed_param_kind): Change NUM_EMBED_STD_PARAMS.
            (_cpp_parse_embed_params): Handle offset parameter for C++.

    Reviewed-by: Jason Merrill <[email protected]>

Reply via email to