[Issue 19149] New: pragma(mangle, "...") does not work for function local __gshared variables

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 8 03:07:41 UTC 2018


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: nobody at puremagic.com
          Reporter: iamthewilsonator at 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)

--


More information about the Digitalmars-d-bugs mailing list