digitalmars.D.bugs - [Issue 15431] New: pragma mangle and mangleof are order dependent
- via Digitalmars-d-bugs (28/28) Dec 09 2015 https://issues.dlang.org/show_bug.cgi?id=15431
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 puremagic.com Reporter: alphaglosined 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. --
Dec 09 2015