Created attachment 524 [details] Make address of member of global struct constant When taking the address of a member of a global struct, as in struct S { int x; } S s; const int* p = &s.x; The above fails on 1.051 with "Error: non-constant expression &s.x" The attached patch fixes this.
Nevermind, seems it breaks Tango .. somehow. http://www.dsource.org/projects/ldc/ticket/384 Color me confused.
Removing 'patch' keyword since the patch is known to be incorrect.
I don't think we can even make them constant. Not in a way that could be used in CTFE anyway (because there could be a linker script, or just PIC / PIE). So going to close this as WONTFIX.