Bug 19149 – pragma(mangle, "...") does not work for function local __gshared variables
Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2018-08-08T03:07:41Z
Last change time
2018-08-28T03:21:21Z
Assigned to
No Owner
Creator
Nicholas Wilson
Comments
Comment #0 by iamthewilsonator — 2018-08-08T03:07:41Z
pragma(mangle, "aaa") __gshared int a = 1;
void main(){
}
works
void main(){
pragma(mangle, "aaa") __gshared int a = 1;
}
Error: unrecognized pragma(mangle)
Comment #1 by iamthewilsonator — 2018-08-28T03:16:02Z