Comment #0 by alphaglosined — 2015-12-10T04:47:12Z
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.
Comment #1 by bugzilla — 2020-03-24T19:56:26Z
A probable solution is to move the pragma (and static assert) processing to semantic2 rather than the first pass.
Comment #2 by robert.schadek — 2024-12-13T18:46:04Z