aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-02-04 13:23:25 +0000
committerJonathan Wakely <jwakely@redhat.com>2022-02-04 15:26:59 +0000
commit696ca2f6cf47caf00ec7056547b62092bd208221 (patch)
tree3bfc3fe49f3dd896f638ba647f90f801051105da /gcc/doc
parent27ba40559ccb887458009a34f710d4a22af85156 (diff)
downloadgcc-696ca2f6cf47caf00ec7056547b62092bd208221.zip
gcc-696ca2f6cf47caf00ec7056547b62092bd208221.tar.gz
gcc-696ca2f6cf47caf00ec7056547b62092bd208221.tar.bz2
doc: Update references to "C++2a" in cpp.texi
gcc/ChangeLog: * doc/cpp.texi (Variadic Macros): Replace C++2a with C++20.
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/cpp.texi8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/doc/cpp.texi b/gcc/doc/cpp.texi
index d4290fef..90b2767 100644
--- a/gcc/doc/cpp.texi
+++ b/gcc/doc/cpp.texi
@@ -1678,7 +1678,7 @@ This formulation looks more descriptive, but historically it was less
flexible: you had to supply at least one argument after the format
string. In standard C, you could not omit the comma separating the
named argument from the variable arguments. (Note that this
-restriction has been lifted in C++2a, and never existed in GNU C; see
+restriction has been lifted in C++20, and never existed in GNU C; see
below.)
Furthermore, if you left the variable argument empty, you would have
@@ -1690,10 +1690,10 @@ eprintf("success!\n", );
@expansion{} fprintf(stderr, "success!\n", );
@end smallexample
-This has been fixed in C++2a, and GNU CPP also has a pair of
+This has been fixed in C++20, and GNU CPP also has a pair of
extensions which deal with this problem.
-First, in GNU CPP, and in C++ beginning in C++2a, you are allowed to
+First, in GNU CPP, and in C++ beginning in C++20, you are allowed to
leave the variable argument out entirely:
@smallexample
@@ -1702,7 +1702,7 @@ eprintf ("success!\n")
@end smallexample
@noindent
-Second, C++2a introduces the @code{@w{__VA_OPT__}} function macro.
+Second, C++20 introduces the @code{@w{__VA_OPT__}} function macro.
This macro may only appear in the definition of a variadic macro. If
the variable argument has any tokens, then a @code{@w{__VA_OPT__}}
invocation expands to its argument; but if the variable argument does