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"
Comment #1 by robert.schadek — 2024-12-13T18:01:37Z