This is the mail archive of the mailing list for the GDB 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]

c++/2535: wrong data displayed for a std::string

>Number:         2535
>Category:       c++
>Synopsis:       wrong data displayed for a std::string
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 13 19:48:01 UTC 2008
>Release:        6.8
Linux linux-8y72 #1 SMP 2008-06-07 01:55:22 +0200 i686 athlon i386 GNU/Linux
For a local std::string variable "s1" print s1.size() displays a wrong value if s1 also is used as return value. Return type of function also is string.
Step into function test(), enter "print s1" in console.

Content-Type: text/x-c++src; name="main.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="main.cpp"


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