libcpp: Enable P1949R7 for C++11 and up as it was a DR [PR100977]
authorJakub Jelinek <jakub@redhat.com>
Tue, 30 Nov 2021 08:50:52 +0000 (09:50 +0100)
committerJakub Jelinek <jakub@redhat.com>
Tue, 30 Nov 2021 08:50:52 +0000 (09:50 +0100)
commit7abcc9ca20d4e17deabb308b5f483aaccc3dc02c
treec21e63f7f6d56c10092fca7fbf157987f2c5ac43
parent2af2f55a500adad73451f3b859cfaa8974920caf
libcpp: Enable P1949R7 for C++11 and up as it was a DR [PR100977]

Jonathan mentioned on IRC that:
"Accept P1949R7 (C++ Identifier Syntax using Unicode Standard Annex 31) as
a Defect Report and apply the changes therein to the C++ working paper."
while I've actually implemented it only for -std={gnu,c}++{23,2b}.
As the C++98 rules were significantly different, I'm not trying to change
anything for C++98.

2021-11-30  Jakub Jelinek  <jakub@redhat.com>

PR c++/100977
* init.c (lang_defaults): Enable cxx23_identifiers for
-std={gnu,c}++{11,14,17,20} too.

* c-c++-common/cpp/ucnid-2011-1-utf8.c: Expect errors in C++.
* c-c++-common/cpp/ucnid-2011-1.c: Likewise.
* g++.dg/cpp/ucnid-4-utf8.C: Add missing space to dg-options.
* g++.dg/cpp23/normalize3.C: Enable for c++11 rather than just c++23.
* g++.dg/cpp23/normalize4.C: Likewise.
* g++.dg/cpp23/normalize5.C: Likewise.
* g++.dg/cpp23/normalize7.C: Expect errors rather than just warnings
for c++11 and up rather than just c++23.
* g++.dg/cpp23/ucnid-2-utf8.C: Expect errors even for c++11 .. c++20.
gcc/testsuite/c-c++-common/cpp/ucnid-2011-1-utf8.c
gcc/testsuite/c-c++-common/cpp/ucnid-2011-1.c
gcc/testsuite/g++.dg/cpp/ucnid-4-utf8.C
gcc/testsuite/g++.dg/cpp23/normalize3.C
gcc/testsuite/g++.dg/cpp23/normalize4.C
gcc/testsuite/g++.dg/cpp23/normalize5.C
gcc/testsuite/g++.dg/cpp23/normalize7.C
gcc/testsuite/g++.dg/cpp23/ucnid-2-utf8.C
libcpp/init.c