https://issues.dlang.org/show_bug.cgi?id=19149
Issue ID: 19149 Summary: pragma(mangle, "...") does not work for function local __gshared variables Product: D Version: D2 Hardware: x86 OS: Mac OS X Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: iamthewilsona...@hotmail.com pragma(mangle, "aaa") __gshared int a = 1; void main(){ } works void main(){ pragma(mangle, "aaa") __gshared int a = 1; } Error: unrecognized pragma(mangle) --