[Issue 22682] New: `pragma(mangle)` does not work at local scope
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 16 22:25:01 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22682
Issue ID: 22682
Summary: `pragma(mangle)` does not work at local scope
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: b2.temp at gmx.com
## test case
```
void main() {
pragma(mangle, "puts")
extern(C) static int puts(const char*);
puts("test");
}
```
## output
/tmp/temp_7FF8B2F14490.d:2:5: Error: unrecognized `pragma(mangle)`
/tmp/temp_7FF8B2F14490.d:4:5: Error: undefined identifier `puts`
--
More information about the Digitalmars-d-bugs
mailing list