From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4232 invoked by alias); 9 Aug 2002 17:16:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 4210 invoked by uid 71); 9 Aug 2002 17:16:01 -0000 Date: Fri, 09 Aug 2002 11:06:00 -0000 Message-ID: <20020809171601.4209.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Gwenole Beauchesne Subject: Re: target/7559: kdelibs miscompilation Reply-To: Gwenole Beauchesne X-SW-Source: 2002-08/txt/msg00197.txt.bz2 List-Id: The following reply was made to PR target/7559; it has been noted by GNATS. From: Gwenole Beauchesne To: gcc-gnats@gcc.gnu.org Cc: david@mandrakesoft.com, , , , , Subject: Re: target/7559: kdelibs miscompilation Date: Fri, 9 Aug 2002 19:13:46 +0200 (CEST) > Also verified to fail with: > GNU C++ version 3.2 20020809 (prerelease) (x86_64-unknown-linux-gnu) The following C testcase is equivalent in miscompiled-behavior. If you don't want to bother compiling the C++ front-end for tests. ;-) extern void abort(); struct A { int x, y; }; struct B { int x, y; }; struct R { struct A a; struct B b; }; struct R X = { { 100, 100 }, { 100, 100 } }; struct R get() { return X; } int main() { struct R r = get(); if (!(r.a.x == 100 && r.a.y == 100 && r.b.x == 100 && r.b.y == 100)) abort(); return 0; }