[Issue 17638] A pragma inside a function body is seen as a statement

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 28 03:23:46 UTC 2018


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.

--


More information about the Digitalmars-d-bugs mailing list