From patchwork Mon Aug 19 15:57:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Polacek X-Patchwork-Id: 1149349 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-507278-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="qFwA7Cxb"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46Bz951zCNz9s3Z for ; Tue, 20 Aug 2019 01:57:58 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:mime-version:content-type; q=dns; s=default; b=OYMu3zL6LQkh9oxSXcWAP6fr1m6g2TE9ndVKlWH9LbwMLOT4Zp H1A2mqFfsz16+3LjaB66D2qq0sH33CmeUAjk3uTLRERfaycM2vDvxdrbeEMZ7ZEr Oxx1plIHvURtUv7riYAF6lvPlSrZcnSksoE6sDjMqJBj0d5bfe4WA1ZTg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:mime-version:content-type; s= default; bh=Tt5NS1Ob7P15wtAjktJ0uhMygIQ=; b=qFwA7CxbcZqPHmf+EyAR aYG18UKRmsrh+LxoEKzZjXzfva/jxgMAJtVNFv5skotQwI6V+07yzm5dmpaOlzHj TquOp/bDPGF/u2c/r9DqroUIu0nLfoglLf5aNLWvDNoi/wbMvqijNJR7R5LQpls0 0kOZA19XIWZYL33OirLy84k= Received: (qmail 84740 invoked by alias); 19 Aug 2019 15:57:51 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 84732 invoked by uid 89); 19 Aug 2019 15:57:51 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-15.1 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_SHORT, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=sk:complet, sk:lvalue, sk:lvalue-, permitting X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 19 Aug 2019 15:57:50 +0000 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1FE4E7FDFF for ; Mon, 19 Aug 2019 15:57:49 +0000 (UTC) Received: from redhat.com (unknown [10.20.4.51]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CCED45C1D6; Mon, 19 Aug 2019 15:57:46 +0000 (UTC) Date: Mon, 19 Aug 2019 11:57:44 -0400 From: Marek Polacek To: GCC Patches Cc: Jonathan Wakely , Jason Merrill Subject: [wwwdocs] Document C++ news in GCC 10 Release Notes Message-ID: <20190819155744.GA14737@redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.12.1 (2019-06-15) I'm of the mind that we should advertise some of the new cool C++ changes going into GCC 10, esp. those that are user-visible. Checking this in. Index: changes.html =================================================================== RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-10/changes.html,v retrieving revision 1.8 diff -u -r1.8 changes.html --- changes.html 19 Aug 2019 14:08:10 -0000 1.8 +++ changes.html 19 Aug 2019 15:53:27 -0000 @@ -48,10 +48,46 @@

C++

    +
  • Several C++20 features have been implemented: +
      +
    • P1668R1, Permitting Unevaluated inline-assembly in constexpr Functions
    • +
    • P1161R3, Deprecate a[b,c]
    • +
    • P0848R3, Conditionally Trivial Special Member Functions
    • +
    • P1091R3, Extending structured bindings
    • +
    +
  • +
  • Several C++ Defect Reports have been resolved, e.g.: +
      +
    • DR 1560 (lvalue-to-rvalue conversion in ?:),
    • +
    • DR 1813 (__is_standard_layout for a class with repeated + bases),
    • +
    • DR 2094 (volatile scalars are trivially copyable),
    • +
    • DR 2096 (constraints on literal unions),
    • +
    • DR 2413 (typename in conversion-function-ids). +
    • +
    +
  • G++ can now detect modifying constant objects in constexpr evaluation (which is undefined behavior).
  • +
  • + G++ no longer emits bogus -Wsign-conversion warnings with explicit + casts. +
  • +
  • + Narrowing is now detected in more contexts (e.g., case + values). +
  • +
  • + Memory consumption of the compiler has been reduced in constexpr evaluation. +
  • +
  • + The noexcept-specifier is now properly treated as a + complete-class context as per + + [class.mem]. +