https://issues.dlang.org/show_bug.cgi?id=17638 --- Comment #3 from Nicholas Wilson <iamthewilsonator at hotmail.com> --- void main(){ pragma(mangle, "aaa") __gshared int a = 1; // Is a declaration, incorrectly marked as a pragma statement. } see issue 19149. --