Message ID | 20240702132130.523603-7-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; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=kxGBojtR; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.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 (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WD3XL69X0z1xpc for <incoming@patchwork.ozlabs.org>; Tue, 2 Jul 2024 23:24:02 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0C53C384602A for <incoming@patchwork.ozlabs.org>; Tue, 2 Jul 2024 13:24:01 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by sourceware.org (Postfix) with ESMTPS id 4E8163882123 for <gcc-patches@gcc.gnu.org>; Tue, 2 Jul 2024 13:21:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4E8163882123 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 4E8163882123 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::32a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719926510; cv=none; b=WjigNxUOEIlpTKz825172jQS/IvmRRYQpC4rw1djXm//DKJfgpUAjnj/smp5FQiY6i3EJkv3uGGmOrryFNOrqAb57refRwfrhfBmxJJH+sEsRLDG4TgHU0Z0r1fQjYjpRlD2+zFFVNIfsuR0L+d5POLITWbbCRa8g9oLTN6INh0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719926510; c=relaxed/simple; bh=YM+g8Oh4IJ+CS7K6YiHe1753VC/VfPQDKviPpI2D5Y4=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=RvGLTrDMc/28Qk4DUIVPhy/oC07BW4/GD27HrLchIhoeQ96awD6i95bhDLdE8gQrEF928NmOkqqhi0t2pogHD0WeP3v/lPLPQcQ7QXcP7TGfOZemEkzRfL9iZNJft/ZFwAF2KZvmTc+v/3/EL/QenXOpWr2i30jmStNDxNWEnMo= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-424aa70fbc4so29100805e9.1 for <gcc-patches@gcc.gnu.org>; Tue, 02 Jul 2024 06:21:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1719926506; x=1720531306; 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=sJT2AMkJTGlleRmathZBaYZ5nkydnB6BvVZiZBknaqw=; b=kxGBojtRvwGNBiejtZvn9QI8CnfRJfMmyO+QGB+D7w4K1RMXe8fqJLBB+nqURNWcK7 vmkjpRgPnaJRoPrjMRZEW5xESJsIWo4tIZWAXC/r/KyIHf98PmfuBGXHiPVaoQoJnXi3 lfsDlt7C5zSChcu0GZzzgp3nGHhmtNoGJ1+S52B/E/YeQCzebo2sCej+Xtqjpddidj/5 BZcJlKjMt5Sw4hA3f8aQ2VUvisXo9gIYzm0RLPOrRvSDw5LJnA40YCrHmwiron/YtHH9 mKxRRwHFftJ+kA7ZSIYSnM4TaTV/WRMntXWmHJ37Ni4YEibF0BxC+8PinrHMR4ZJK74Z QZOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719926506; x=1720531306; 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=sJT2AMkJTGlleRmathZBaYZ5nkydnB6BvVZiZBknaqw=; b=chudwndcpx2nJjbdX3VJGXUWDZ4tbfVNfqAsuqWEVCDXsLEPSds5CJb3tuclCd3E8O RzNYDuRM2GRtbDydFxIn3LA8PF33zm6LqF1uOj1qgDKsgeE/Ae/+4HXCXEJ15mB0sxlu COm1yT7rS/lnWuGzFXBgREPqWEAj+IcpAW8DvdkY4SWfosj+MW5o+qWRMtUlQLkDxXLg j+zSiHx+MMEDlBKqXZ1rRAcN/ie4AhZbfuTngRNFN0wvZPPs+VOTpt3E0EZMGKfXDPtt Po/tO9s2Z3ShPe1nfg/QKPfDzQvaS5tWEwl7VOiUZHVER5/lWOaEr5miKx6q3tubpsmm odzg== X-Gm-Message-State: AOJu0Yy+PWtqiT2+/J/sWRb0pSIEva3CPoS68dD25DTtqEiYjIDqh4kO PxN4Z3yDyLy5tuuaZu6YMdn6r0Kia+sz8Ij3WvRA6JCVWXTBkja5KlVxHbJFD5gdJgVELZ2ag4A = X-Google-Smtp-Source: AGHT+IF02TEAgzJg7S+xuQMt7MjNJZLE2Uba4oLaZpRWgGyq7WVTB72sHZWEHVMkZnFFXt0SRGXCNQ== X-Received: by 2002:a05:600c:1989:b0:425:6bc4:977b with SMTP id 5b1f17b1804b1-4257a06df09mr74491885e9.26.1719926506201; Tue, 02 Jul 2024 06:21:46 -0700 (PDT) Received: from poulhies-Precision-5550.lan ([2001:861:3382:1a90:53cf:a5ff:fb60:5a70]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4256b09abbfsm197319895e9.35.2024.07.02.06.21.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jul 2024 06:21:45 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= <poulhies@adacore.com> To: gcc-patches@gcc.gnu.org Cc: Bob Duff <duff@adacore.com> Subject: [COMMITTED 07/13] ada: Bug box for expression function with list comprehension Date: Tue, 2 Jul 2024 15:21:23 +0200 Message-ID: <20240702132130.523603-7-poulhies@adacore.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240702132130.523603-1-poulhies@adacore.com> References: <20240702132130.523603-1-poulhies@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-14.0 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~incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
[COMMITTED,01/13] ada: Document that -gnatdJ is unused
|
expand
|
diff --git a/gcc/ada/freeze.adb b/gcc/ada/freeze.adb index 757c16e6839..7cf7e847677 100644 --- a/gcc/ada/freeze.adb +++ b/gcc/ada/freeze.adb @@ -9137,6 +9137,7 @@ package body Freeze is -- that type is not attached to an entity in the construct. elsif Nkind (Node) in N_Has_Etype + and then Present (Etype (Node)) and then Nkind (Parent (Node)) = N_Iterator_Specification and then Node = Name (Parent (Node)) then
From: Bob Duff <duff@adacore.com> GNAT crashes on an iterator with a filter inside an expression function that is the completion of an earlier spec. gcc/ada/ * freeze.adb (Freeze_Type_Refs): If Node is in N_Has_Etype, check that it has had its Etype set, because this can be called early for expression functions that are completions. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/freeze.adb | 1 + 1 file changed, 1 insertion(+)