http://d.puremagic.com/issues/show_bug.cgi?id=2391 ------- Comment #1 from samukha at voliacable.com 2008-10-04 04:10 ------- In the above, S instance is unnecessary. Corrected: ---- struct S { static int x; } void main() { __traits(getMember, S, ['x']) = 1; } ---- --