From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18924 invoked by alias); 2 Aug 2004 22:40:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 18916 invoked by uid 48); 2 Aug 2004 22:40:48 -0000 Date: Mon, 02 Aug 2004 22:40:00 -0000 Message-ID: <20040802224048.18915.qmail@sourceware.org> From: "reichelt at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040729123210.16819.lindig@cs.uni-sb.de> References: <20040729123210.16819.lindig@cs.uni-sb.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug target/16819] [3.4/3.5 regression] ICE with empty struct as arg X-Bugzilla-Reason: CC X-SW-Source: 2004-08/txt/msg00145.txt.bz2 List-Id: ------- Additional Comments From reichelt at gcc dot gnu dot org 2004-08-02 22:40 ------- Here's a further reduced code snippet: ========================= double d=0; struct A {} a; void foo(struct A x) { d=0; } void bar() { if (d) foo(a); } ========================= This thing crashes at -O since gcc 2.95.x, so this is not really a regression. Making foo static does not help. But the struct being empty seems to be essential. -- What |Removed |Added ---------------------------------------------------------------------------- CC| |reichelt at gcc dot gnu dot | |org Keywords| |monitored Summary|[3.4/3.5 regression] |[3.4/3.5 regression] ICE |internal error (non-static |with empty struct as arg |function call, empty struct | |as arg) | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16819