From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25222 invoked by alias); 9 Jun 2009 21:27:24 -0000 Received: (qmail 25031 invoked by uid 48); 9 Jun 2009 21:27:08 -0000 Date: Tue, 09 Jun 2009 21:27:00 -0000 Message-ID: <20090609212708.25030.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/40389] optimizer bug (possibly) In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-06/txt/msg00590.txt.bz2 ------- Comment #5 from rguenth at gcc dot gnu dot org 2009-06-09 21:27 ------- I don't see why this is an issue at all - in fact the address does not escape(?) but instead the assignment is inside the callee. So : D.2275 = baz (); [return slot optimization] SR.101_9 = D.2275.a; SR.102_11 = D.2275.p; SR.103_3 = D.2275.n; as it looks like on trunk is still correct, no? Which means, I still don't see where it goes wrong ... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40389