This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

libstdc++/3738: static member variables are well handled by containers



>Number:         3738
>Category:       libstdc++
>Synopsis:       static member variables are well handled by containers
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 19 12:06:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     luca.formaggia@epfl.ch
>Release:        gcc version 3.0
>Organization:
>Environment:
i686-pc-linux-gnu
Linux kernel 2.4.3-12 on intel PIII (i686) 
>Description:
Cannot access a public static member of an object A 
contained in a stl container<A>
by simply using container[n].static_member (it compiles
but loader gives  undefined reference)

It works if I assign A foo=container[n]; and then
foo.static member.  
>How-To-Repeat:
just compile with g++ the not_working.cc file.
The working.cc contains the workaround (which 
compiles and runs fine).
>Fix:
I do not know (apart the workaround)
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="example.tgz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="example.tgz"


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