This is the mail archive of the insight-prs@sources.redhat.com mailing list for the Insight 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]

insight/195: Reference to a std::string template


>Number:         195
>Category:       insight
>Synopsis:       Reference to a std::string template
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 02 07:53:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     f.mensik@tiscali.cz
>Release:        5.2.1
>Organization:
>Environment:
Pentium 4
RedHat 8.0 - GCC 3.2, GDB 5.2.1 (Insight 5.2.1)
>Description:
If I use a reference to a str::string templete in a function call and then I open "Local Variable" or "Watch" window in the function body, GDB Insight 5.2.1 freez or crash.

I enclose exaple code:

1. #include <string>
2.
3. int func( std::string& str_ref )
4. {
5. 	str_ref = std::string( "string" );
6. 	return 0;
7. }
8. 
9. int main( )
10. {
11. 	std::string my_str;
12.	func( my_str );
13. 	return 0;	
14. }

Run the program and stop it in the line 5. Then open "Local Variable" window and Insight freez.

Kind regards,
- F.Mensik, Prague, Czech Republic
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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