From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16447 invoked by alias); 15 Jan 2019 04:30:41 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 16379 invoked by uid 89); 15 Jan 2019 04:30:37 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-11.9 required=5.0 tests=BAYES_00,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,TIME_LIMIT_EXCEEDED autolearn=unavailable version=3.3.2 spammy=PDF, p0482r5, char8_t, REVISED X-HELO: smtp72.iad3a.emailsrvr.com Received: from smtp72.iad3a.emailsrvr.com (HELO smtp72.iad3a.emailsrvr.com) (173.203.187.72) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 15 Jan 2019 04:30:27 +0000 Received: from smtp34.relay.iad3a.emailsrvr.com (localhost [127.0.0.1]) by smtp34.relay.iad3a.emailsrvr.com (SMTP Server) with ESMTP id 8661124BDF; Mon, 14 Jan 2019 23:30:25 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=honermann.net; s=20180930-2j89z3ji; t=1547526625; bh=8i0tmVCD3NrYVenSVZTkHP65S0zF0jVhKbBc9NEsDjM=; h=Subject:To:From:Date:From; b=CuGahfP8rM1dZaB2jRkzd3YnJduOdf0I0VaZIc7/gJkr8JwvbxC+eiiuMII4cw36E dht2EVXvpu2/qUkYM3XXI9FYCiIA22Z1PwQxK7NW7vDQBrFQoLlgDlpQEJ3Gropik8 1myD5HD0PGtfTHQs5r9+hdzT3lhWgMIemfKRifyE= X-Auth-ID: tom@honermann.net Received: by smtp34.relay.iad3a.emailsrvr.com (Authenticated sender: tom-AT-honermann.net) with ESMTPSA id 52EA024BD0; Mon, 14 Jan 2019 23:30:25 -0500 (EST) X-Sender-Id: tom@honermann.net Received: from [192.168.1.27] (pool-71-176-235-158.rcmdva.fios.verizon.net [71.176.235.158]) (using TLSv1.2 with cipher AES128-SHA) by 0.0.0.0:587 (trex/5.7.12); Mon, 14 Jan 2019 23:30:25 -0500 Subject: Re: [REVISED PATCH 1/9]: C++ P0482R5 char8_t: Documentation updates To: Martin Sebor , gcc-patches References: <1de934a1-cc14-26fe-a18c-5de855271187@honermann.net> <396315c1-7a7c-d981-b9c6-a5e76bb011a0@honermann.net> <40c86900-a6cd-9c19-3ad9-2a9b3bd8977e@gmail.com> From: Tom Honermann Message-ID: Date: Tue, 15 Jan 2019 04:30:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <40c86900-a6cd-9c19-3ad9-2a9b3bd8977e@gmail.com> Content-Type: multipart/mixed; boundary="------------EC6B2D730FB11F921C1CE6EE" X-IsSubscribed: yes X-SW-Source: 2019-01/txt/msg00814.txt.bz2 This is a multi-part message in MIME format. --------------EC6B2D730FB11F921C1CE6EE Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-length: 1043 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 --------------EC6B2D730FB11F921C1CE6EE Content-Type: text/x-patch; name="char8_t-doc-update.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="char8_t-doc-update.diff" Content-length: 1360 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::basic_string()' + // 'std::basic_string::basic_string()' using namespace std::literals; s = u8"xx"s; // error: conversion from - // `basic_string' to non-scalar - // type `basic_string' requested + // 'basic_string' to non-scalar + // type 'basic_string' requested @end smallexample @item -fcheck-new --------------EC6B2D730FB11F921C1CE6EE--