public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/1855: Bug in global map variables
@ 2001-12-21 14:48 pme
  0 siblings, 0 replies; 2+ messages in thread
From: pme @ 2001-12-21 14:48 UTC (permalink / raw)
  To: badger, bkoz, gcc-bugs, gcc-prs

Synopsis: Bug in global map variables

State-Changed-From-To: analyzed->closed
State-Changed-By: pme
State-Changed-When: Fri Dec 21 14:48:48 2001
State-Changed-Why:
    Nine months later, no feedback.

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


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

* libstdc++/1855: Bug in global map variables
@ 2001-04-01  0:00 badger
  0 siblings, 0 replies; 2+ messages in thread
From: badger @ 2001-04-01  0:00 UTC (permalink / raw)
  To: libstdc++-gnats; +Cc: badger

>Number:         1855
>Category:       libstdc++
>Synopsis:       Bug in global map variables
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bkoz
>State:          analyzed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 03 09:26:06 PST 2001
>Closed-Date:    
>Last-Modified:  Wed Mar 22 00:27:00 PST 2000
>Originator:     badger@prtr-13.ucsc.edu
>Release:        libstdc++-2.90.7 (And libstdc++v2 included with egcs)
>Organization:
>Environment:
Redhat linux-5.2 + kernel2.2 &
sparc-sun-solaris2.5.1
>Description:
I am generating two related errors concerning a global variable
that instantiates the map template class.

When attempting to access the variable from a function, I am
able to access and change keys that were generated in the
calling function as I expect. However, the calling function
is not able to access keys created in the called function.

When attempting to access the variable from code in a second
file none of the keys belonging to the map variable are
available to me.  None of the keys generated in this file
are available in the calling function in the main file.
>How-To-Repeat:
The files I am attaching contain a short code snippet to repeat
the error.  (If the file does not get to you, please get it
from http://www.tiki-lounge.com/~toshio/map-test.tgz )

Files: map-test.cpp:  The file containing the main function.
       map-test.h:    Contains an extern definition for the
                      global map variable.
       map-extern.cpp:Contains another function that attempts
                      to use the global map variable.
       t:             Contains output from the program run.

Compile, link, and run to regenerate the error.
>Fix:
Unknown.  If this is just my misunderstanding of the
spec or if this is an error in gcc/egcs rather than
libstdc++, please let me know.
>Release-Note:

>Audit-Trail:

Formerly PR libstdc++/38

Responsible-Changed-From-To: unassigned->bkoz
Responsible-Changed-By: bkoz
Responsible-Changed-When: Wed Mar 22 00:22:29 2000
Responsible-Changed-Why:
    mine
State-Changed-From-To: open->analyzed
State-Changed-By: bkoz
State-Changed-When: Wed Mar 22 00:22:29 2000
State-Changed-Why:
    This example program is pretty huge. Can you please narrow this down to a short short, small, mini, tiny example that will fit into one file, and provide relevant comments in your bug report as to what output you are expecting, what output you are getting, etc?
    
    thanks,
    benjamin

From: bkoz@cygnus.com
To: badger@prtr-13.ucsc.edu, bkoz@cygnus.com,
  libstdc++-gnats@sourceware.cygnus.com, nobody@sourceware.cygnus.com
Cc:  
Subject: Re: libstdc++/38
Date: 22 Mar 2000 08:22:30 -0000

 Synopsis: Bug in global map variables
 
 Responsible-Changed-From-To: unassigned->bkoz
 Responsible-Changed-By: bkoz
 Responsible-Changed-When: Wed Mar 22 00:22:29 2000
 Responsible-Changed-Why:
     mine
 State-Changed-From-To: open->analyzed
 State-Changed-By: bkoz
 State-Changed-When: Wed Mar 22 00:22:29 2000
 State-Changed-Why:
     This example program is pretty huge. Can you please narrow this down to a short short, small, mini, tiny example that will fit into one file, and provide relevant comments in your bug report as to what output you are expecting, what output you are getting, etc?
     
     thanks,
     benjamin
 
 http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&pr=38&database=libstdc++
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/x-compressed; name="map-test.tgz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="map-test.tgz"

H4sIAGBfuTgAA+1YbWvbMBDOZ/0NCuFBacva+t2rkxY22GCfNti+taW4tpIYEjnYTlcY/e87+UWR
3+IGZrcbui+JHkmn85303Elrb3NGnlIS03N/s5kMIpqq2qaJJxjrmmqzX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AA


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

end of thread, other threads:[~2001-12-21 22:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-21 14:48 libstdc++/1855: Bug in global map variables pme
  -- strict thread matches above, loose matches on Subject: below --
2001-04-01  0:00 badger

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).