]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Add testcase for CWG2575 [PR120778]
authorJakub Jelinek <jakub@redhat.com>
Thu, 7 Aug 2025 06:52:38 +0000 (08:52 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 7 Aug 2025 06:52:38 +0000 (08:52 +0200)
commit3b66a2a7890f2ae27ad4c1e1ac62b6551a2ffbae
tree62691ecd2c6dd38ff5732fa1cc649afaa39a64c7
parent2c5bd8e9fb16584cdd1d090b9a5a63dd9140b61b
c++: Add testcase for CWG2575 [PR120778]

From the paper it isn't clear what caused the decision changes, not to drop
the "the token defined is generated as a result of this replacement process or"
part and make [cpp.cond]/10 violations IFNDR rather than ill-formed (the
latter maybe so that the extension to handle e.g. !A(A) below etc. can be
accepted).

Anyway, because that case hasn't been dropped and we pedwarn on it already,
and diagnose everything else the way it should, the following patch just
adds testcase for it.

2025-08-07  Jakub Jelinek  <jakub@redhat.com>

PR preprocessor/120778
* g++.dg/DRs/dr2575.C: New test.
gcc/testsuite/g++.dg/DRs/dr2575.C [new file with mode: 0644]