[Issue 15431] New: pragma mangle and mangleof are order dependent
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Dec 9 20:47:12 PST 2015
https://issues.dlang.org/show_bug.cgi?id=15431
Issue ID: 15431
Summary: pragma mangle and mangleof are order dependent
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: alphaglosined at gmail.com
Given some test code as:
pragma(msg, mySymbol.mangleof);
pragma(mangle, "_mySymbolIsThis")
void mySymbol() {
import std.stdio : writeln;
writeln("mySymbol");
}
pragma(msg, mySymbol.mangleof);
The output is:
_D4f2008mySymbolFZv
_mySymbolIsThis
The order of mangleof should not matter to the output.
It's silly because extern(C) is taking more into account then pragma(mangle is
here.
--
More information about the Digitalmars-d-bugs
mailing list