On 1/4/19 7:40 PM, Martin Sebor wrote:
On 12/23/18 7:27 PM, Tom Honermann wrote:
Attached is a revised patch that addresses feedback provided by Jason
and Sandra. Changes from the prior patch include:
- Updates to the -fchar8_t option documentation as requested by Jason.
- Corrections for indentation, spacing, hyphenation, and wrapping as
requested by Sandra.
Just a minor nit that backticks in code examples should be avoided
(per the TexInfo manual, they can cause trouble when copying code
from PDF readers):
+@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*'
Thanks for catching that, Martin. Patch relative to trunk (r267930)
attached to correct this (Jason already committed the original change).
Tom.
Martin
Index: gcc/doc/invoke.texi
===================================================================
--- gcc/doc/invoke.texi (revision 267930)
+++ gcc/doc/invoke.texi (working copy)
@@ -2468,16 +2468,16 @@
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*'
+ // 'const char8_t*' to 'const char*'
int f(const char*);
auto v = f(u8"xx"); // error: invalid conversion from
- // `const char8_t*' to `const char*'
+ // 'const char8_t*' to 'const char*'
std::string s@{u8"xx"@}; // error: no matching function for call to
- // `std::basic_string<char>::basic_string()'
+ // 'std::basic_string<char>::basic_string()'
using namespace std::literals;
s = u8"xx"s; // error: conversion from
- // `basic_string<char8_t>' to non-scalar
- // type `basic_string<char>' requested
+ // 'basic_string<char8_t>' to non-scalar
+ // type 'basic_string<char>' requested
@end smallexample
@item -fcheck-new