This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13668] thread local storage: static class member does not work
- From: "feanor-list at tol-eressea dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jan 2004 01:03:47 -0000
- Subject: [Bug c++/13668] thread local storage: static class member does not work
- References: <20040113145147.13668.simon.marshall@misys.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From feanor-list at tol-eressea dot org 2004-01-17 01:03 -------
(In reply to comment #2)
> Created an attachment (id=5506)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5506&action=view)
> Two thread, one static variable, three addresses:))
>
> Try to compile this little program and you'll some funny behaviour.
The is the output on g++ 3.3.2 on debian:
__display value: 0x804a058, address: 0x8049c68 in thread 1085393872
__display value: (nil), address: 0x40b1cbc8 in thread 1085393872
disp (nil)
__display value: 0x804c3f8, address: 0x8049c68 in thread 1085393872
__display value: (nil), address: 0x40b1cbc8 in thread 1085393872
__display value: 0x804b090, address: 0x8049c68 in thread 1077004064
__display value: (nil), address: 0x4031c718 in thread 1077004064
disp (nil)
Erreur de segmentation
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13668