aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcc-changelog/git_commit.py
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2025-08-05 08:21:55 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2025-08-05 08:21:55 +0200
commitab7c16990fca6b456156895d8d0d5e1a37476d38 (patch)
tree636e7b0ccf5e61d17515701f81dcbb39474f72b5 /contrib/gcc-changelog/git_commit.py
parent2361b20f7a4f9ee65184aff2d0299bfc3e0d0f76 (diff)
downloadgcc-ab7c16990fca6b456156895d8d0d5e1a37476d38.zip
gcc-ab7c16990fca6b456156895d8d0d5e1a37476d38.tar.gz
gcc-ab7c16990fca6b456156895d8d0d5e1a37476d38.tar.bz2
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 <jakub@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.
Diffstat (limited to 'contrib/gcc-changelog/git_commit.py')
0 files changed, 0 insertions, 0 deletions