www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8789] New: mangling of const member function

http://d.puremagic.com/issues/show_bug.cgi?id=8789

           Summary: mangling of const member function
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: zan77137 nifty.com



Document of mangling for const member function is not completed.
Now, TypeFunction of ABI doesn't consider the const/immutable/shared/inout
attributes.

TypeFunction:
    CallConvention FuncAttrs Arguments ArgClose Type

These mangling schemes don't include const/immutable/shared/inout attributes.

If const/immutable/shared/inout attributes are contained in FuncAttrs,
following mangling is wrong:
-------------------------------
class A
{
    void func() const {}
}
pragma(msg, typeof(A.func).mangleof); // xFZv
-------------------------------
typeof(A.func).mangleof must be "FxZv"

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 09 2012