Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 77920 - In STL, assigning a set data structure the values in another "set" by the "=" operator does not work properly
In STL, assigning a set data structure the values in another "set" by the "="...
Product: Red Hat Linux
Classification: Retired
Component: gcc3 (Show other bugs)
i686 Linux
medium Severity high
: ---
: ---
Assigned To: Jakub Jelinek
Depends On:
  Show dependency treegraph
Reported: 2002-11-15 07:39 EST by Need Real Name
Modified: 2007-04-18 12:48 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-10-01 11:02:46 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2002-11-15 07:39:20 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020827

Description of problem:
outline of the code:
set< string > urlset;
for ( i = 0; i < N; i++ ) {
urlset = someFunctionWhichReturnsSet(i,...); // Works the first time

This works during the first pass of the for loop. Doesn't work from the next
time. I tried the "set.erase()" call and other such tricks.

IT WORKS WITH GCC2.9XXX ( RH 2.96, that is ... both on RH 7.3 and on 8.0 with
compat* packages )

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.Write any program like the above
2.Compile it ( does compile )
3.Fails if compiler gcc3.2 ( not checked with other gcc3.x )
Did not work with the one in rawhide too.

Actual Results:  The "set" data structure contained no members. set.size()
returned 0 from the second time onwards.
Worked fine with gcc2.95/6

Expected Results:  Whatever happened with gcc2.95/6 was the expected way it
should have run

Additional info:

No error messages as such. The output was not as expected.
I'm sorry if the information I've provided is not enough. Tried my best though!

Severity is mentioned "high" because it is of a lot of importance to developers,
as a lot of my code has stopped working!
Comment 1 Jakub Jelinek 2002-12-04 11:29:04 EST
Please attach a self-contained (minimal) testcase, not just an outline of what you're
trying to do.
Comment 2 Benjamin Kosnik 2004-10-01 11:02:46 EDT
Never completed bug report. Lacking reproducible test case.


Note You need to log in before you can comment on or make changes to this bug.