From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10232 invoked by alias); 23 Sep 2007 18:40:53 -0000 Received: (qmail 10175 invoked by alias); 23 Sep 2007 18:40:44 -0000 Date: Sun, 23 Sep 2007 18:40:00 -0000 Message-ID: <20070923184044.10174.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug debug/33537] [4.0/4.1/4.2/4.3 regression] C++ arguments passed by invisible reference have wrong type In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "drow 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: 2007-09/txt/msg01951.txt.bz2 ------- Comment #4 from drow at gcc dot gnu dot org 2007-09-23 18:40 ------- Subject: Re: [4.0/4.1/4.2/4.3 regression] C++ arguments passed by invisible reference have wrong type On Sun, Sep 23, 2007 at 06:31:42PM -0000, pluto at agmk dot net wrote: > > If this function is called from GDB, and the called function modifies > > its argument, it will end up modifying the original copy. > > It's supposed to get a temporary copy. > > compiler does the temporary copy. please look at this example: That's why the bug report said "from GDB". It's a debug info bug, not a C++ wrong-code bug. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33537