Message ID | 20240520074858.222435-21-poulhies@adacore.com |
---|---|
State | Committed |
Commit | fd5a221928bb0689f7ff7eadc295970bf58392a5 |
Headers |
Return-Path: <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> 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 00CEC3858D37 for <patchwork@sourceware.org>; Mon, 20 May 2024 07:57:36 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by sourceware.org (Postfix) with ESMTPS id 6326D3858C5F for <gcc-patches@gcc.gnu.org>; Mon, 20 May 2024 07:49:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6326D3858C5F Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6326D3858C5F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::32d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716191374; cv=none; b=dCvkSux4tzvr7sdCwOPPnZTW/1iuq7HOgsB3Au7cV7OWQbs7GZGajjGSdavguL3XeJp5y7ST+JnqkNgQA+X8bGo0u6G32zNqabuxjTV7YN+aX8TnZOMt1w3fJiEmXG5Wbe39NHuisKo+BhxQJPXATzj9PNcbQMXHc9hcCb382Vs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716191374; c=relaxed/simple; bh=vG9GyANDwHWwpJYIQ1F6u9U67x4CuV0VEEUhiCtyYrU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Myx6Cz2GInLqWcNSaA83lOsfWlTPN141bDOlYbabhFUlz4RIBUfMjVUGuIykcr2lsJd1IsRZnUSd5UXsrbDU9KARkq3mQaKRjpvhLLf+GYCO/eXOe9KOuFFFeHKad5GebqT+Su4bulDMNzM55Y1ogw9O5iyVGBZ27a9EySkzFF0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-420298ff5b1so24599475e9.1 for <gcc-patches@gcc.gnu.org>; Mon, 20 May 2024 00:49:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1716191368; x=1716796168; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2uO3e6rmYcjckZDFmr2lIXAtCE7ddAHAwTaNJF5vAcE=; b=CBAdyDkIuIZaRj7Ibwlz+izGIMjbhmVFV5MCKa+8UHJosk4ByBzDgbIXa07nbtUAi5 SxJJ94Yvk2qaALTRLXbZuceRoiKHBRou1m9E6CDNJ9ZJe5Bven00DslenBZbCoFoOkiG q4hL3BCR/MwC0nrZuuHp7ZrLmDHyV3VO8aH40hWDUOtGsxcjtoFZKKTaISeSCNCjt4fT jJ5Y61i/FWZeMxdlsRuwjWHDLZHpvz6h1VYoM+GKCiPpf7RmjU8nSK+P3EOTUgSQVjV5 M6a2aEqH21W+RoUDl8F89PQk7fHeyDDS6ypm1v8qpA8SuR6xjQmFCmgYP6VHjprIjFjV yhKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716191368; x=1716796168; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2uO3e6rmYcjckZDFmr2lIXAtCE7ddAHAwTaNJF5vAcE=; b=BNNG4XbNgGal7T+QroZ61GHNyP6Z+NmPgeaD4t1gSZu69vzy+8DeYEwYE14OO5Edf7 5MreOncGnV27YdfPacwKqXm11jd+SanwMA+T4riNTS9mH5sE/ZoYu1q3Rd0YziclB+yT d0kzPL2k9sERohEi439jKomk0POq1QNB54PM2uTpAxageXDdG8LppdH/dlshD3rROzus nECaZ3p8nzVwdQPLPYy8dQO4VR3TldvE9aHX5NZ1yHD72NjNqVnhvoso4lfAu2eVbFVH pTCnoaUdeSYgQ7U5uoUjqdILuOelYihDyAhTyjC72nVk2QuyybFhxRGQ1NyyTUsS7E0D Ue3Q== X-Gm-Message-State: AOJu0Ywn98y8nCAyiaWX35VUcoTCCWeeQi7I68L+3+YWOpk5sSTbHMQs fIO9QlCI2vZ7kGYXVcx7kUxTiEpQdFKD2J403x9fhxe3cp0TSXREQwib2aZDb4SKK84PRjWD5Hw = X-Google-Smtp-Source: AGHT+IFHJHgA7BjUcgKFrdAk5XqY2w8zZvRM1c+Ko0M8XnENxWB/pnRhDY6J/mu8OZPoscuboyrfdQ== X-Received: by 2002:a05:600c:26cc:b0:418:4aac:a576 with SMTP id 5b1f17b1804b1-41fead64fdemr263131855e9.39.1716191368234; Mon, 20 May 2024 00:49:28 -0700 (PDT) Received: from poulhies-Precision-5550.lan ([2001:861:3382:1a90:de37:8b1c:1f33:2610]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-41f88111033sm446892175e9.34.2024.05.20.00.49.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 00:49:27 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= <poulhies@adacore.com> To: gcc-patches@gcc.gnu.org Cc: Justin Squirek <squirek@adacore.com> Subject: [COMMITTED 21/30] ada: Further refine 'Super attribute Date: Mon, 20 May 2024 09:48:47 +0200 Message-ID: <20240520074858.222435-21-poulhies@adacore.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240520074858.222435-1-poulhies@adacore.com> References: <20240520074858.222435-1-poulhies@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.9 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.30 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> Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org |
Series |
[COMMITTED,01/30] ada: Rework and augment documentation on strict aliasing
|
|
Commit Message
Marc Poulhiès
May 20, 2024, 7:48 a.m. UTC
From: Justin Squirek <squirek@adacore.com>
This patch relaxes the restriction on 'Super such that it can apply to abstract
type objects.
gcc/ada/
* sem_attr.adb (Analyze_Attribute): Remove restriction on 'Super
for abstract types.
Tested on x86_64-pc-linux-gnu, committed on master.
---
gcc/ada/sem_attr.adb | 4 ----
1 file changed, 4 deletions(-)
diff --git a/gcc/ada/sem_attr.adb b/gcc/ada/sem_attr.adb index df52229b6aa..403810c8b5e 100644 --- a/gcc/ada/sem_attr.adb +++ b/gcc/ada/sem_attr.adb @@ -6683,10 +6683,6 @@ package body Sem_Attr is elsif Depends_On_Private (P_Type) then Error_Attr_P ("prefix type of % is a private extension"); - -- Check that we don't view convert to an abstract type - - elsif Is_Abstract_Type (Node (First_Elmt (Parents))) then - Error_Attr_P ("type of % cannot be abstract"); end if; -- Generate a view conversion and analyze it