[Bug c++/13668] thread local storage: static class member does not work
feanor-list at tol-eressea dot org
gcc-bugzilla@gcc.gnu.org
Sat Jan 17 01:03:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list