From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27116 invoked by alias); 13 Aug 2005 18:00:15 -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 27099 invoked by uid 48); 13 Aug 2005 18:00:12 -0000 Date: Sat, 13 Aug 2005 18:00:00 -0000 Message-ID: <20050813180012.27098.qmail@sourceware.org> From: "giovannibajo at libero dot it" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050813080257.23372.guillaume.melquiond@ens-lyon.fr> References: <20050813080257.23372.guillaume.melquiond@ens-lyon.fr> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/23372] [4.0/4.1 Regression] Temporary aggregate copy not elided when passing parameters by value X-Bugzilla-Reason: CC X-SW-Source: 2005-08/txt/msg01508.txt.bz2 List-Id: ------- Additional Comments From giovannibajo at libero dot it 2005-08-13 18:00 ------- Why doesn't this happen with the copy constructor, then? there we should be calling the copyctor with *a, which would have the same problem. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23372