: 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
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(
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
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