From patchwork Tue Feb 4 22:22:10 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Polacek X-Patchwork-Id: 105997 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 025113858433 for ; Tue, 4 Feb 2025 22:24:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 025113858433 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=bct869O5 X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id 917F03858C56 for ; Tue, 4 Feb 2025 22:22:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 917F03858C56 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 917F03858C56 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1738707743; cv=none; b=So8o7ASW6ThPrpnUlbmCHlObWG15tvNe8jY9omGrT2xtveBcn6/BFjFjFr012h4Tn9zTDdqIKKXnW14vOrRNALuPnF4bFC9la6rvJac+DiqeqBujShIFpCGtaoNOT6RDi3PVevwq9HqHdcLgKu+y+0AaqX3KuERVasCU7KD5MW0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1738707743; c=relaxed/simple; bh=WSmh0ZVIwMpSBFs1JrCSwBeqO4HqwMjZ5+1PEGosx6U=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=Das/OEoL2OVhpoB38izJsWD8tSRHpoKARf66oOuaV95CETwvfpG0xGWDK8Z/nISvbT9ZUK6xol7GUXiLtjLd49DlhW4AsAVVbplq9FEYZXpDkAM7XiK16rl5GJerPgJJcNEhpn7UJxDvs/VkOTmtmrLTAFIzgcmpklWH+FtxjGQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 917F03858C56 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1738707741; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=bapLO2M8KlV4o1tZZs9mt4B7a5CZ+R74kvTBis2cZjg=; b=bct869O5YddUaQK+CdKuPlhenNvkgi0Ns5WkcazyyY89LgNSyIgEhZs8SMQp2KDJJanJ6p 11waZ0PUsXlRxJf+fSEpHWoeT4vWD1B0OrsfpVPkdcZaVzARhh6JPFZT0D84okdGTQgIbF 4D9FSY42OIHn+2LydINjdz5qSNTUZ8c= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-649-jz1RTUURNMWcV5K9jGfing-1; Tue, 04 Feb 2025 17:22:14 -0500 X-MC-Unique: jz1RTUURNMWcV5K9jGfing-1 X-Mimecast-MFC-AGG-ID: jz1RTUURNMWcV5K9jGfing Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-4679aeb21e6so100977081cf.0 for ; Tue, 04 Feb 2025 14:22:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738707734; x=1739312534; h=user-agent:content-disposition:mime-version:message-id:subject:to :from:date:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bapLO2M8KlV4o1tZZs9mt4B7a5CZ+R74kvTBis2cZjg=; b=sEnJjLxiG3RCfZKtPuAPomiXdM3bGMXNd2H3U+ZjilLmPBR3slrUWIbpVZP//C6ol7 gG0WXPSCKJ5Z3+el6HjYeCwfSY3AWFYW2qJldzaICkEKTHHV3jqvaUQKpoLoPGCypi5z kIhD2nYRoA/JA4ovOEofKPR69qHZ6iJPgV04wzKPzjvU1HlfHYEMZhPyXT3r1YsaXcoy vY1rBsqQ99pRCaGjLfyAaW07iFn1iZA9BS1deFbBOHu3zs4+xR6r2UhjQciyu/Pb7etL iJypnOue71dnCl3k5vvV8Vb6fvuVO1hHE+4fZ0wvaM+Kqg0dYc99OVTysY4lYTrrJBQt u5qg== X-Gm-Message-State: AOJu0YwUtJNXyE47Gmw1oZiDQ4AF7TCPz+gWjuNJvx5Qfeb1k4CnMAQQ Szc2TK1++RPQ+oY+BKt2tqCYpBYhZH2711FbCGJ6EK7gI2doHVtrkU+pBj5SqQyQqhH6tlsJYLs l6FS4EO+u2jGBUdCXfT0A2JS8oDBusQ+U0wJXy0DfVofu4JRj+/Xfdaaj+AnV2ayo8TZTq0c7fB 7005nXxiq1Q5oxRiF3I0Xe+IcZYG1j/12iFUicgA== X-Gm-Gg: ASbGncverKjLNGs6/sXH6nYkGEcCy99ssisTuRFgMRmaX2SA/OYyFEzOO+Dykry7AGo 4RPd8pswaWTXjliPwKwGs4scC2KssqfS99VCFko0B4DdrRYhD7GI6HyOwkgScDxfc734V4Ok6+W chblB5KVuJIdWxldToaNCwyl0U1bUVUHZoAauLhjCue6Yqu/8QDyzg8xEWlLJUbKmbV4E1NIZqi jKETzqpjZvJuJ+cRiybYxQkCI2UwuCJwUZXAglcqvdvVdhQ1qEYgdjS+f2WXaw= X-Received: by 2002:a05:622a:245:b0:461:22f0:4f83 with SMTP id d75a77b69052e-470282de380mr5718321cf.43.1738707733751; Tue, 04 Feb 2025 14:22:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IGjB9x2CFm3hcBI3QmGCi+lkH4X214/qlptcFwq6NBhVtgZmZ5gkJpeYGpUl2ek2cu00L9dTg== X-Received: by 2002:a05:622a:245:b0:461:22f0:4f83 with SMTP id d75a77b69052e-470282de380mr5717851cf.43.1738707733185; Tue, 04 Feb 2025 14:22:13 -0800 (PST) Received: from redhat.com ([2603:7000:9500:34a5::1db4]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-46fdf172bc4sm63782291cf.58.2025.02.04.14.22.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Feb 2025 14:22:12 -0800 (PST) Date: Tue, 4 Feb 2025 17:22:10 -0500 From: Marek Polacek To: GCC Patches Subject: [wwwdocs] Document some further C++ FE changes Message-ID: MIME-Version: 1.0 User-Agent: Mutt/2.2.13 (2024-03-09) X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: JyXmfFAR-VNXD_5fe35rY17kghVBix1JTl7OZyLD-e4_1738707734 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, KAM_SOMETLD_ARE_BAD_TLD, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org W3 validated. Pushed. commit 3c9e703a45f36113ace827463e6f0240fea334a2 Author: Marek Polacek Date: Tue Feb 4 17:20:18 2025 -0500 Document some further C++ FE changes. diff --git a/htdocs/gcc-15/changes.html b/htdocs/gcc-15/changes.html index 14dea6f4..18484915 100644 --- a/htdocs/gcc-15/changes.html +++ b/htdocs/gcc-15/changes.html @@ -246,14 +246,22 @@ asm (".text; %cc0: mov %cc2, %%r0; .previous;"
  • Several C++ Defect Reports have been resolved, e.g.:
      +
    • DR 36, + using-declarations in multiple-declaration contexts
    • DR 882, Defining main as deleted
    • +
    • DR 1363, + Triviality vs multiple default constructors
    • +
    • DR 1496, + Triviality with deleted and missing default constructors
    • DR 2387, Linkage of const-qualified variable template
    • DR 2521, User-defined literals and reserved identifiers
    • DR 2627, Bit-fields and narrowing conversions
    • +
    • DR 2819, + Cast from null pointer value in a constant expression (C++26 only)
    • DR 2867, Order of initialization for structured bindings
    • DR 2918, @@ -276,7 +284,76 @@ asm (".text; %cc0: mov %cc2, %%r0; .previous;" delete. If a program overrides those replaceable global operators and the replaced definitions read or modify global state visible to the rest of the program, programs might need to be compiled with - -fno-assume-sane-operators-new-delete. + -fno-assume-sane-operators-new-delete.
    • +
    • + + The + -Wself-move warning now warns even in a + member-initializer-list. +
    • +
    • + + The support for Concepts TS was removed. -fconcepts-ts has no + effect anymore. +
    • +
    • + + A new option + + -Wtemplate-body was added, which can be used to disable + diagnosing errors when parsing a template. +
    • +
    • + C++ Modules have been greatly improved. +
    • +
    • + + C++11 attributes are now supported even in C++98. +
    • +
    • + New + + flag_enum attribute to indicate that the enumerators + are used in bitwise operations; this suppresses a -Wswitch + warning. +
    • +
    • + The + -Wdangling-reference warning has been improved: for + example, it doesn't warn for empty classes anymore. +
    • +
    • + The front end's handling of explicitly-defaulted functions has been + corrected to properly handle [dcl.fct.def.default]. The + new + + -Wdefaulted-function-deleted warning warns when an + explicitly defaulted function is deleted. +
    • +
    • + The implementation of DR 2789 + was refined. +
    • +
    • + + Compilation time speed ups, e.g. by improving hashing of template + specializations. +
    • +
    • + + Support for __builtin_operator_new and + __builtin_operator_delete was added. See + + the manual for more info. +
    • +
    • + + More prvalues are evaluated at compile time + (git). +
    • +
    • + Various diagnostic improvements. +

    Runtime Library (libstdc++)