This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/33537] [4.0/4.1/4.2/4.3 regression] C++ arguments passed by invisible reference have wrong type



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]