[Issue 8789] New: mangling of const member function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 9 07:56:40 PDT 2012


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 at puremagic.com
        ReportedBy: zan77137 at nifty.com


--- Comment #0 from SHOO <zan77137 at nifty.com> 2012-10-09 07:32:24 PDT ---
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: -------


More information about the Digitalmars-d-bugs mailing list