Message ID | 20221108084150.300930-1-poulhies@adacore.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=o38CSkkg; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4N61nx4dL7z23lW for <incoming@patchwork.ozlabs.org>; Tue, 8 Nov 2022 19:43:01 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id ADE65385803D for <incoming@patchwork.ozlabs.org>; Tue, 8 Nov 2022 08:42:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ADE65385803D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667896978; bh=5kx/JGnW7N5ffrgul284qJM9YXB11znm2zWmZHLwE4c=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=o38CSkkgwd3CuLnWhCsm96PZISjUjLP9BGKD7Vf8zs+Bzzd8UfWdL0+hc/bA6P6Xx tBNWVOLKsIDVq36D8ngMmFaICKEO4s1sMy0WpUeRwdJjkmVmT5SduUHs2nTZ/CxfZ9 VAiL/+eLtDpRqb1PAvUePARx8nFYmu4HpMV43pgo= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by sourceware.org (Postfix) with ESMTPS id 3B64C38582AF for <gcc-patches@gcc.gnu.org>; Tue, 8 Nov 2022 08:41:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3B64C38582AF Received: by mail-wr1-x42a.google.com with SMTP id g12so19733538wrs.10 for <gcc-patches@gcc.gnu.org>; Tue, 08 Nov 2022 00:41:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5kx/JGnW7N5ffrgul284qJM9YXB11znm2zWmZHLwE4c=; b=0Wbjdk6axvaSWPvfovLZqoQyIJTFo4ao8rh4BjvvQQ6G9QbEOMgsgwEA+sGCxh5Jtu sSJXejBi1ZRycBs0UaF3wqIgw84ncQoM46DpCVuaIGy06BbBugfSit29Z7OAjADWgRTd uif8hQ8FC9RorQb4zL5A4daSc6SffOtxUsaOoZ1h0P5xbH/DT23pCP1a+Q5L4iVvhKte /tUejvBWymRKTqYqnrqDbeZeaYgwqpu1igNrepusM2oAelZfLMxpFmdjqa/HeGhMMPAe OWOfPrzvf2IcdHOyAUxVx6XBQQpVY8zBlnmnJRqEzVUYg/LOIFn+s0yRuTsnpHzk5Z/z LyEA== X-Gm-Message-State: ACrzQf1jPMkGAl90TlY8sWq6HUfuJGCOf1p5dG9UIep1pPSEXh2SOIaB Cr02wgVN1oR6AyqZZbpMGZiNLQcWAw6Ftw== X-Google-Smtp-Source: AMsMyM5iGm6dxfm2YppfUlSJn3o6KLXsdSYxWuXw90NZFfAIHyZ5L34pW42AkRuul238F/ySqTqxUw== X-Received: by 2002:a5d:4fc2:0:b0:236:66ce:5e2e with SMTP id h2-20020a5d4fc2000000b0023666ce5e2emr35154006wrw.638.1667896914143; Tue, 08 Nov 2022 00:41:54 -0800 (PST) Received: from localhost.localdomain (static-176-191-105-132.ftth.abo.bbox.fr. [176.191.105.132]) by smtp.gmail.com with ESMTPSA id n1-20020a1ca401000000b003cf66a2d433sm13511783wme.33.2022.11.08.00.41.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Nov 2022 00:41:53 -0800 (PST) To: gcc-patches@gcc.gnu.org Cc: Piotr Trojanek <trojanek@adacore.com> Subject: [COMMITTED] ada: Allow initialization of limited objects with delta aggregates Date: Tue, 8 Nov 2022 09:41:50 +0100 Message-Id: <20221108084150.300930-1-poulhies@adacore.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, 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.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: =?utf-8?q?Marc_Poulhi=C3=A8s_via_Gcc-patches?= <gcc-patches@gcc.gnu.org> Reply-To: =?utf-8?q?Marc_Poulhi=C3=A8s?= <poulhies@adacore.com> Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> |
Series |
[COMMITTED] ada: Allow initialization of limited objects with delta aggregates
|
expand
|
diff --git a/gcc/ada/sem_ch3.adb b/gcc/ada/sem_ch3.adb index 76dc6325060..f6b852051dc 100644 --- a/gcc/ada/sem_ch3.adb +++ b/gcc/ada/sem_ch3.adb @@ -20145,6 +20145,7 @@ package body Sem_Ch3 is case Nkind (Original_Node (Exp)) is when N_Aggregate + | N_Delta_Aggregate | N_Extension_Aggregate | N_Function_Call | N_Op
From: Piotr Trojanek <trojanek@adacore.com> Objects of a limited type can be initialized with "aggregates", which is a collective term for ordinary aggregates (i.e. record aggregates and array aggregates), extension aggregates and finally for delta aggregates (introduced by Ada 2022). gcc/ada/ * sem_ch3.adb (OK_For_Limited_Init_In_05): Handle delta aggregates just like other aggregates. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/sem_ch3.adb | 1 + 1 file changed, 1 insertion(+)