This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: How to print the return value of template member functions (C++)?
On Thu, Jan 04, 2007 at 04:34:36PM -0600, Peng Yu wrote:
> g++-3.4 (GCC) 3.4.4 20050314 (prerelease) (Debian 3.4.3-13sarge1)
> Copyright (C) 2004 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> The gcc version is shown above. But how to make sure it is because gcc
> bugs? Shall I use a later version?
I tried it for you. It fails with 3.4 and succeeds with 4.1.
I don't know if it's a GDB bug or a g++ bug; they are definitely very
different debug info. It really could be either.
--
Daniel Jacobowitz
CodeSourcery