]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
doc: Update -fchar8_t documentation
authorMarek Polacek <polacek@redhat.com>
Tue, 7 Feb 2023 16:21:37 +0000 (11:21 -0500)
committerMarek Polacek <polacek@redhat.com>
Tue, 7 Feb 2023 16:23:46 +0000 (11:23 -0500)
Since C++20 P2513R4, char8_t Compatibility and Portability Fix it is
no longer true that

  char ca[] = u8"xx";

causes an error so adjust the example for -fchar8_t.

gcc/ChangeLog:

* doc/invoke.texi: Update -fchar8_t documentation.

gcc/doc/invoke.texi

index 1eda0e0396b1dc0e3cb7f2cea3bb57b914eead57..51447a78584af9df7b70a465e4d272a1656d4e59 100644 (file)
@@ -3057,8 +3057,6 @@ following code is well-formed under ISO C++11, but is ill-formed when
 @option{-fchar8_t} is specified.
 
 @smallexample
-char ca[] = u8"xx";     // error: char-array initialized from wide
-                        //        string
 const char *cp = u8"xx";// error: invalid conversion from
                         //        `const char8_t*' to `const char*'
 int f(const char*);