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

--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:ab7c16990fca6b456156895d8d0d5e1a37476d38

commit r16-2776-gab7c16990fca6b456156895d8d0d5e1a37476d38
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Tue Aug 5 08:21:55 2025 +0200

    libcpp: Add testcase for CWG2579 [PR120778]

    Another easy part from the paper.

    Part of the CWG2579 has been already done in an earlier paper (with
    test commits by Marek) and the remaining part is implemented correctly,
    we diagnose as error when token pasting doesn't form a valid token.

    Except that message
    pasting """" and """" does not give a valid preprocessing token
    looked weird and so I've updated the message to use %< and %> instead
    of \" quoting.

    2025-08-05  Jakub Jelinek  <ja...@redhat.com>

            PR preprocessor/120778
            * macro.cc (paste_tokens): Use %< and %> instead of \" in
            diagnostics around %.*s.

            * g++.dg/DRs/dr2579.C: New test.
            * c-c++-common/cpp/va-opt-6.c: Expect ' rather than \" around
            tokens in incorrect pasting diagnostics.
            * gcc.dg/c23-attr-syntax-6.c: Likewise.
            * gcc.dg/cpp/paste12.c: Likewise.
            * gcc.dg/cpp/paste12-2.c: Likewise.
            * gcc.dg/cpp/paste14.c: Likewise.
            * gcc.dg/cpp/paste14-2.c: Likewise.

Reply via email to