public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/9213: vect.size() doesn't work proper
@ 2003-01-07  9:26 reichelt
  0 siblings, 0 replies; 2+ messages in thread
From: reichelt @ 2003-01-07  9:26 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, kristof, nobody, taveirne

Synopsis: vect.size() doesn't work proper

State-Changed-From-To: open->feedback
State-Changed-By: reichelt
State-Changed-When: Tue Jan  7 01:26:23 2003
State-Changed-Why:
    Please provide a self-contained testcase that fails for you
    and more informarion on your system.
    
    I cannot reproduce your problems.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9213


^ permalink raw reply	[flat|nested] 2+ messages in thread

* libstdc++/9213: vect.size() doesn't work proper
@ 2003-01-07  8:46 kristof, taveirne
  0 siblings, 0 replies; 2+ messages in thread
From: kristof, taveirne @ 2003-01-07  8:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9213
>Category:       libstdc++
>Synopsis:       vect.size() doesn't work proper
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 07 00:46:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     kristof.taveirne@rug.ac.be
>Release:        3.2
>Organization:
>Environment:

>Description:
 
     std::cout << vect.size()<< std::endl;
     std::cout << vect.size()<< std::endl;

gives 2 different sizes when called right after eachother.
The second time it equals vect.capacity();

vect.size() should not change the size of the vector, since no items are added to it.
>How-To-Repeat:
create empty vector, and write out the size twice after each other. it's behaviour is very akward, it sometimes does it correctly.
>Fix:
.
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-07  9:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-07  9:26 libstdc++/9213: vect.size() doesn't work proper reichelt
  -- strict thread matches above, loose matches on Subject: below --
2003-01-07  8:46 kristof, taveirne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).