www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15431] New: pragma mangle and mangleof are order dependent


          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;

pragma(msg, mySymbol.mangleof);

The output is:


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

Dec 09 2015