From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id AB1343858D34 for ; Mon, 15 Apr 2024 08:06:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AB1343858D34 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 AB1343858D34 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=1713168383; cv=none; b=MCLbx/dlLQBxDlhT4puWpKORmqX5qcS0ZM2frawSq4AYzK8ZHQJttaqBjF9mpnYa8Bj+p8zu1/YZZqQkeJz3+FzmwupgdLpQyoqCtpssFIv0PysPxELUfOwqOYtfGN062wp/od644QTIx9aFpbtFRx3i6db8OBU8Z3ODgFUTF1U= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713168383; c=relaxed/simple; bh=hRIR8Aj6j722lxjuhbKTlpCVaLMHZKS5+TdygqVLw3Y=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=QRDxiyAJaaGzOUMnLfLNYIjDq9xeh06gEZmM7w2OlXaHB9VfHRheZVxDFT4jHmTAcgDrJn3e6WWlDvW6k6AX/KbqAsZuP4istn6vRX6bUec97uYZ5l//w0lHzyLQeAs1iYqfbIfM5wZRwyVwYQubwLT6xrs74vJTe6sgbY5vvZk= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1713168379; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=yaDau9nI7sRbyPWgsmQqhB5cTdy/XbWljVLwTLYFTX0=; b=D5OIe0Q86n750e/BHtAdCzDK2vGylbQd84pvqhksK21SdJI8EcGE/KlQ9ZA8nPmIoo7t6E bm5xxLZGjFogR3W7YptZzFdnfPrkpGpgbDuhmjEBVbyFI6iXTx4eraevW4r2kuozU7ml1e j6kLkTKT678R6RurqEAESIAwGJsOF7s= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-679-L03GSVFJOfe99bAea64jGw-1; Mon, 15 Apr 2024 04:06:06 -0400 X-MC-Unique: L03GSVFJOfe99bAea64jGw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B0724104B500; Mon, 15 Apr 2024 08:06:05 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.45.224.5]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7028E1BDAA; Mon, 15 Apr 2024 08:06:05 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 43F85xBj051226 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 15 Apr 2024 10:05:59 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 43F85x55051225; Mon, 15 Apr 2024 10:05:59 +0200 Date: Mon, 15 Apr 2024 10:05:58 +0200 From: Jakub Jelinek To: Richard Biener Cc: Martin Uecker , gcc-patches@gcc.gnu.org, "Joseph S. Myers" Subject: Re: [C PATCH, v2] Fix ICE with -g and -std=c23 related to incomplete types [PR114361] Message-ID: Reply-To: Jakub Jelinek References: <02a9b94e4d653b6f1b9f89a1b62187f46e871738.camel@tugraz.at> <448b0744f89d5c6ba5d6a5bacda154fcb74b7bca.camel@tugraz.at> <71q844s1-p7ps-492r-qp8r-r8nq69s8qp8n@fhfr.qr> <00r63o4n-88ns-0184-n594-55n69769n785@fhfr.qr> MIME-Version: 1.0 In-Reply-To: <00r63o4n-88ns-0184-n594-55n69769n785@fhfr.qr> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,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 List-Id: On Mon, Apr 15, 2024 at 10:02:25AM +0200, Richard Biener wrote: > > Though, haven't managed to reproduce it with -O2 -flto -std=c23 > > struct S; > > typedef struct S **V[10]; > > V **foo (int x) { return 0; } > > struct S { int s; }; > > either. > > So, maybe let's drop the ipa-free-lang-data.cc part? > > Seems fld_incomplete_type_of uses fld_type_variant which should > > copy over TYPE_CANONICAL. > > If you have a testcase that still triggers it would be nice to see it. I don't, that is why I'm now suggesting to just drop that hunk. Jakub