This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/33537] [4.0/4.1/4.2/4.3 regression] C++ arguments passed by invisible reference have wrong type
- From: "drow at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Sep 2007 18:40:44 -0000
- Subject: [Bug debug/33537] [4.0/4.1/4.2/4.3 regression] C++ arguments passed by invisible reference have wrong type
- References: <bug-33537-3264@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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