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

--- Comment #6 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:b9f443b6177881c490fbce9ba65b86a7cd65f11f

commit r16-2747-gb9f443b6177881c490fbce9ba65b86a7cd65f11f
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Mon Aug 4 14:27:14 2025 +0200

    libcpp: Use pedwarn instead of warning for CWG2578 diagnostics [PR120778]

    This is another case which changed from compile time undefined behavior
    to ill-formed, diagnostic required.  Now, we warn on this, so pedantically
    that is good enough, maybe all we need is a testcase, but the following
    patch changes it to a pedwarn for C++26.

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

            PR preprocessor/120778
            * macro.cc (stringify_arg): For C++26 emit a pedarn instead of
warning
            for \ at the end of stringification.

            * g++.dg/DRs/dr2578.C: New test.

Reply via email to