[Issue 19785] top level const types in function parameters should not mangle as const

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 2 21:16:09 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=19785

ag0aep6g <ag0aep6g at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ag0aep6g at gmail.com

--- Comment #1 from ag0aep6g <ag0aep6g at gmail.com> ---
I suppose these should also mangle the same then:

    void foo(const int* p) {}
    void bar(const(int)* p) {}

And these, too:

    void foo(const int[] p) {}
    void bar(const(int)[] p) {}

I.e., remove the top level of const for mangling.

--


More information about the Digitalmars-d-bugs mailing list