How to print the return value of template member functions (C++)?

Daniel Jacobowitz drow@false.org
Thu Jan 4 22:45:00 GMT 2007


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



More information about the Gdb mailing list