Message ID | 20230801080820.2271686-1-poulhies@adacore.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp2517792vqg; Tue, 1 Aug 2023 01:13:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlFsIW7DvXdmnlxM5CBlVkBmLUB3d/mSDrJhlqldOtnlrG3A/AoXGoLQ/cbm0X0ciNhQvhOf X-Received: by 2002:a17:906:9beb:b0:994:4f4a:218c with SMTP id de43-20020a1709069beb00b009944f4a218cmr1748859ejc.8.1690877617733; Tue, 01 Aug 2023 01:13:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690877617; cv=none; d=google.com; s=arc-20160816; b=eLSFFf17EEykpfgSKJuIejH94QvqnNrHHxTVeKK4jVsPKc8lNu1qXYJkzwsmNElsvz 1x8YnzrX39/2tCmyxJIRX2b8jPqfJaiR2SuDIKeAXBUkuC9jPzsUOiiqbQIJ07q9m2b/ d1sVXtgNvmvWRUs8W0nDjRO3sQNDtr1sFFSW5cGPT/SUMsU+dmZuAYN+fBNtAOKJJG1F CHbkCCaPXZAiP9PqyFYxE9vGIYr2Tc+nV1bFt5D+MEDGa2zzSoVkl1jLRk9VjyveMJvd bs5Ln+3z9IHCtUttXUBg1H11RIP+fAGL+uEElUUUQKzIDRdKynvz6bjtidHzH7HWQ0up s5Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=+9CoHYNRonXz8EZQ/IMwJAjVzlgPw+Wva2jnZ86izqM=; fh=ojS6XItmEm4a6vr30sEw2RcMKF1GS+W4ZCiXypR22Bw=; b=uWM+QNKeV28oowEte+gdYcKfjpKCYTfxv9KU6ubK3EkV6PdlUUpnkJRVtoBBuL72km Cg0ym+noVf7+5Hbh0AN7mDt3iU97rsq1F1U8EgEGc0I7iwBYG9CqURvZ7bsF7LkvBLgF gAEzSBhAX/3i8ImTYKN2YvF6xwMkFTc8/TtdsKIaqpAmly9AJuDxq1/MHrIUZm+Ayu+7 8o68opIW0Ss01GQ6hgrVbTS6YYMNCrlsDkBsMndJh4A6J8LHcoS24YEa5JzboCQyOG8z QqSAJiyY/BFdIOWUbWA0L81Vlt9o47AgBWvwhBLUkhdOFl69f59uLxv1/q6+HhYsFnUF +VOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=kunX1jR2; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id u23-20020a1709064ad700b0098f564f636esi8176194ejt.132.2023.08.01.01.13.37 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Aug 2023 01:13:37 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=kunX1jR2; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 96980385C6EA for <ouuuleilei@gmail.com>; Tue, 1 Aug 2023 08:11:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 96980385C6EA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1690877488; bh=+9CoHYNRonXz8EZQ/IMwJAjVzlgPw+Wva2jnZ86izqM=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=kunX1jR2EbsSkdJ2Ekes21EUIJDIPXk8Z+nWuzPCPsjkuyi8YHNSu75+HMQHQXm77 qFuoLlrzwfCieD72e8c8ek0CuOG284OVb3WKBdMH1jidGtHbqOljoqelWMAQa3CiS7 RQjyKVXKd5zR1jQIHcRcE7OZb0GHYgONbpoJKwtM= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by sourceware.org (Postfix) with ESMTPS id E69963857C43 for <gcc-patches@gcc.gnu.org>; Tue, 1 Aug 2023 08:08:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E69963857C43 Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-4fe3c7f16bbso2245581e87.0 for <gcc-patches@gcc.gnu.org>; Tue, 01 Aug 2023 01:08:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690877302; x=1691482102; 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=+9CoHYNRonXz8EZQ/IMwJAjVzlgPw+Wva2jnZ86izqM=; b=gm4oywWu66kSetOATVq2vY9nNIemZlRJ+sGM3+CrkQwSo54z9Udiha9H7pQqbLKJ37 Ekt1Yq8xC14xr2iiKY5uIPT0jOYfK4HIrKBUDp6HNAjPMM1WzadcCZxki+5jWaX41WaG SIsrwytutTLvwOukqgCBwKGcb4uaD354uz6/eib1oNEJnLUtFHFicqSN3A+50Ybnm6Ua DzF1WB4E4vobcvKV77mh8dD6ftXR7XQ9/BxCYDb48gqq4hjf6OIQS64c9LMQS0JM1cYa hWlxI00JH/AfVuropPHcb8gDYHEUj9cd/SCgFie2P7ewfOYDQDbKafVArcq7PaQZ/Naf 46TQ== X-Gm-Message-State: ABy/qLYGSna2hyxK8lZU9d7wK+t04xQKavDiWTCP13H3T7KjA5DlIxOH aMKe/RzbcBn1HooLflt7spSG/rI2s431fco5fgRzmg== X-Received: by 2002:a05:6512:32a9:b0:4f9:5781:8628 with SMTP id q9-20020a05651232a900b004f957818628mr1409867lfe.24.1690877302128; Tue, 01 Aug 2023 01:08:22 -0700 (PDT) Received: from poulhies-Precision-5550.telnowedge.local (lmontsouris-659-1-24-67.w81-250.abo.wanadoo.fr. [81.250.175.67]) by smtp.gmail.com with ESMTPSA id 25-20020a05600c025900b003fbb25da65bsm13251876wmj.30.2023.08.01.01.08.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Aug 2023 01:08:21 -0700 (PDT) To: gcc-patches@gcc.gnu.org Cc: Steve Baird <baird@adacore.com> Subject: [COMMITTED] ada: Bugbox compiling Constrained_Protected_Object'Image Date: Tue, 1 Aug 2023 10:08:20 +0200 Message-Id: <20230801080820.2271686-1-poulhies@adacore.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.7 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, T_SCC_BODY_TEXT_LINE 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+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773013689254333738 X-GMAIL-MSGID: 1773013689254333738 |
Series |
[COMMITTED] ada: Bugbox compiling Constrained_Protected_Object'Image
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Marc Poulhiès
Aug. 1, 2023, 8:08 a.m. UTC
From: Steve Baird <baird@adacore.com>
In some cases, a bugbox is generated when compiling an example
that references X'Image, where X is a constrained object of a
discriminated protected type.
gcc/ada/
* sem_ch3.adb (Constrain_Corresponding_Record): When copying
information from the unconstrained record type to a newly
constructed constrained record subtype, the
Direct_Primitive_Operations attribute must be copied.
Tested on x86_64-pc-linux-gnu, committed on master.
---
gcc/ada/sem_ch3.adb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/ada/sem_ch3.adb b/gcc/ada/sem_ch3.adb index ed337f5408e..042ace01724 100644 --- a/gcc/ada/sem_ch3.adb +++ b/gcc/ada/sem_ch3.adb @@ -14325,6 +14325,8 @@ package body Sem_Ch3 is Set_Is_Constrained (T_Sub, True); Set_First_Entity (T_Sub, First_Entity (Corr_Rec)); Set_Last_Entity (T_Sub, Last_Entity (Corr_Rec)); + Set_Direct_Primitive_Operations + (T_Sub, Direct_Primitive_Operations (Corr_Rec)); if Has_Discriminants (Prot_Subt) then -- False only if errors. Set_Discriminant_Constraint