__gshared struct foo { int n; } foo f; This f is not shared between threads, even though the __gshared indicates it should be. Why is this not an error? -- Simen