[Bug c++/83568] New: thread_local class members not initialized before accessed using operator ::

2017-12-23 Thread tinrow at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: tinrow at gmail dot com Target Milestone: --- thread_local class members are not initialized as expected, if it is accessed using member access operator (dot) instead of

[Bug c++/83568] thread_local class members not initialized before accessed using operator ::

2017-12-23 Thread tinrow at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83568 --- Comment #1 from Kan Wang --- Sorry for wrong paste, the code should be #include bool initialized = false; int init() { initialized = true; return 1; } struct A { static thread_local int foo; }; thread_local int A::foo { init(

[Bug c++/60702] thread_local initialization

2017-11-13 Thread tinrow at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60702 Kan Wang changed: What|Removed |Added CC||tinrow at gmail dot com --- Comment #5 from

[Bug libstdc++/61667] New: setting max_load_factor of unordered_map cause buckets shrink

2014-07-02 Thread tinrow at gmail dot com
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: tinrow at gmail dot com I want to build an unordered_map with at least 20 initial buckets and set max load factor to 0.5. The bucket count shrinks to 2 during call to