From 8bc87173003a879e9231cad66d7befa9ca7461f6 Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Tue, 7 Feb 2023 11:21:37 -0500 Subject: [PATCH] doc: Update -fchar8_t documentation 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 | 2 -- 1 file changed, 2 deletions(-) diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 1eda0e0..51447a7 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -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*); -- 2.7.4