From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23361 invoked by alias); 31 Jan 2004 21:15:35 -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 23345 invoked by uid 48); 31 Jan 2004 21:15:35 -0000 Date: Sat, 31 Jan 2004 21:15:00 -0000 From: "dann at godzilla dot ics dot uci dot edu" To: gcc-bugs@gcc.gnu.org Message-ID: <20040131211533.13954.dann@godzilla.ics.uci.edu> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug optimization/13954] New: [tree-ssa] SRA does not work for classes that use inheritance X-Bugzilla-Reason: CC X-SW-Source: 2004-01/txt/msg04021.txt.bz2 List-Id: SRA does not work for classes that use inheritance. This is a known issue, filed so that it can be tracked. /* { dg-do compile } */ /* { dg-options "-O1 -fdump-tree-optimized" } */ void link_error (void); class base { }; class teststruct: public base { public: double d; char f1; }; void copystruct1 (teststruct param) { teststruct local; param.f1 = 0; local = param; if (local.f1 != 0) link_error (); } /* There should be no reference to link_error. */ /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized"} } */ -- Summary: [tree-ssa] SRA does not work for classes that use inheritance Product: gcc Version: tree-ssa Status: UNCONFIRMED Severity: normal Priority: P2 Component: optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dann at godzilla dot ics dot uci dot edu CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13954