From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9280 invoked by alias); 13 Aug 2005 18:13:04 -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 9228 invoked by uid 48); 13 Aug 2005 18:12:59 -0000 Date: Sat, 13 Aug 2005 18:13:00 -0000 Message-ID: <20050813181259.9227.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" 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/msg01515.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-13 18:12 ------- (In reply to comment #4) > which confuses me a bit, because here the prototype of f looks like > effectively > > void f(A*); No that is correct as it turns the class into a non pod and non pods are always passed via reference and not via value. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23372