diff options
author | Jakub Jelinek <jakub@redhat.com> | 2025-08-04 14:27:14 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2025-08-04 14:27:14 +0200 |
commit | b9f443b6177881c490fbce9ba65b86a7cd65f11f (patch) | |
tree | f4c321be9c5aab91ef6e78a4b59fa6d83523dfa0 /gcc/testsuite/c-c++-common/cpp/embed-24.c | |
parent | d49d359b0c5266b314bcf31405746909d99927a1 (diff) | |
download | gcc-master.zip gcc-master.tar.gz gcc-master.tar.bz2 |
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 <jakub@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.
Diffstat (limited to 'gcc/testsuite/c-c++-common/cpp/embed-24.c')
0 files changed, 0 insertions, 0 deletions